<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Python Documentation contents &mdash; Python v2.6.2 documentation</title>
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '2.6.2',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="search" type="application/opensearchdescription+xml"
          title="Search within Python v2.6.2 documentation"
          href="_static/opensearch.xml"/>
    <link rel="author" title="About these documents" href="about.html" />
    <link rel="copyright" title="Copyright" href="copyright.html" />
    <link rel="top" title="Python v2.6.2 documentation" href="index.html" />
    <link rel="next" title="What’s New in Python" href="whatsnew/index.html" />
    <link rel="shortcut icon" type="image/png" href="_static/py.png" />
 

  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="whatsnew/index.html" title="What’s New in Python"
             accesskey="N">next</a> |</li>
        <li><img src="_static/py.png" alt=""
                 style="vertical-align: middle; margin-top: -1px"/></li>
        <li><a href="index.html">Python v2.6.2 documentation</a> &raquo;</li>
 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="python-documentation-contents">
<h1>Python Documentation contents<a class="headerlink" href="#python-documentation-contents" title="Permalink to this headline">¶</a></h1>
<ul>
<li class="toctree-l1"><a class="reference external" href="whatsnew/index.html">What&#8217;s New in Python</a><ul>
<li class="toctree-l2"><a class="reference external" href="whatsnew/2.6.html">What&#8217;s New in Python 2.6</a><ul>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#python-3-0">Python 3.0</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#changes-to-the-development-process">Changes to the Development Process</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#new-issue-tracker-roundup">New Issue Tracker: Roundup</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#new-documentation-format-restructuredtext-using-sphinx">New Documentation Format: reStructuredText Using Sphinx</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-343-the-with-statement">PEP 343: The &#8216;with&#8217; statement</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#writing-context-managers">Writing Context Managers</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#the-contextlib-module">The contextlib module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-366-explicit-relative-imports-from-a-main-module">PEP 366: Explicit Relative Imports From a Main Module</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-370-per-user-site-packages-directory">PEP 370: Per-user <tt class="docutils literal"><span class="pre">site-packages</span></tt> Directory</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-371-the-multiprocessing-package">PEP 371: The <tt class="docutils literal"><span class="pre">multiprocessing</span></tt> Package</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-3101-advanced-string-formatting">PEP 3101: Advanced String Formatting</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-3105-print-as-a-function">PEP 3105: <tt class="docutils literal"><span class="pre">print</span></tt> As a Function</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-3110-exception-handling-changes">PEP 3110: Exception-Handling Changes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-3112-byte-literals">PEP 3112: Byte Literals</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-3116-new-i-o-library">PEP 3116: New I/O Library</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-3118-revised-buffer-protocol">PEP 3118: Revised Buffer Protocol</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-3119-abstract-base-classes">PEP 3119: Abstract Base Classes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-3127-integer-literal-support-and-syntax">PEP 3127: Integer Literal Support and Syntax</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-3129-class-decorators">PEP 3129: Class Decorators</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#pep-3141-a-type-hierarchy-for-numbers">PEP 3141: A Type Hierarchy for Numbers</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#the-fractions-module">The <tt class="docutils literal"><span class="pre">fractions</span></tt> Module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#other-language-changes">Other Language Changes</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#optimizations">Optimizations</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#interpreter-changes">Interpreter Changes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#new-improved-and-deprecated-modules">New, Improved, and Deprecated Modules</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#the-ast-module">The <tt class="docutils literal"><span class="pre">ast</span></tt> module</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#the-future-builtins-module">The <tt class="docutils literal"><span class="pre">future_builtins</span></tt> module</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#the-json-module-javascript-object-notation">The <tt class="docutils literal"><span class="pre">json</span></tt> module: JavaScript Object Notation</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#the-plistlib-module-a-property-list-parser">The <tt class="docutils literal"><span class="pre">plistlib</span></tt> module: A Property-List Parser</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#ctypes-enhancements">ctypes Enhancements</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#improved-ssl-support">Improved SSL Support</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#build-and-c-api-changes">Build and C API Changes</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#port-specific-changes-windows">Port-Specific Changes: Windows</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#port-specific-changes-mac-os-x">Port-Specific Changes: Mac OS X</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.6.html#port-specific-changes-irix">Port-Specific Changes: IRIX</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#porting-to-python-2-6">Porting to Python 2.6</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.6.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="whatsnew/2.5.html">What&#8217;s New in Python 2.5</a><ul>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#pep-308-conditional-expressions">PEP 308: Conditional Expressions</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#pep-309-partial-function-application">PEP 309: Partial Function Application</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#pep-314-metadata-for-python-software-packages-v1-1">PEP 314: Metadata for Python Software Packages v1.1</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#pep-328-absolute-and-relative-imports">PEP 328: Absolute and Relative Imports</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#pep-338-executing-modules-as-scripts">PEP 338: Executing Modules as Scripts</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#pep-341-unified-try-except-finally">PEP 341: Unified try/except/finally</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#pep-342-new-generator-features">PEP 342: New Generator Features</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#pep-343-the-with-statement">PEP 343: The &#8216;with&#8217; statement</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.5.html#writing-context-managers">Writing Context Managers</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.5.html#the-contextlib-module">The contextlib module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#pep-352-exceptions-as-new-style-classes">PEP 352: Exceptions as New-Style Classes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#pep-353-using-ssize-t-as-the-index-type">PEP 353: Using ssize_t as the index type</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#pep-357-the-index-method">PEP 357: The &#8216;__index__&#8217; method</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#other-language-changes">Other Language Changes</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.5.html#interactive-interpreter-changes">Interactive Interpreter Changes</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.5.html#optimizations">Optimizations</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#new-improved-and-removed-modules">New, Improved, and Removed Modules</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.5.html#the-ctypes-package">The ctypes package</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.5.html#the-elementtree-package">The ElementTree package</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.5.html#the-hashlib-package">The hashlib package</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.5.html#the-sqlite3-package">The sqlite3 package</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.5.html#the-wsgiref-package">The wsgiref package</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#build-and-c-api-changes">Build and C API Changes</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.5.html#port-specific-changes">Port-Specific Changes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#porting-to-python-2-5">Porting to Python 2.5</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.5.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="whatsnew/2.4.html">What&#8217;s New in Python 2.4</a><ul>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#pep-218-built-in-set-objects">PEP 218: Built-In Set Objects</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#pep-237-unifying-long-integers-and-integers">PEP 237: Unifying Long Integers and Integers</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#pep-289-generator-expressions">PEP 289: Generator Expressions</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#pep-292-simpler-string-substitutions">PEP 292: Simpler String Substitutions</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#pep-318-decorators-for-functions-and-methods">PEP 318: Decorators for Functions and Methods</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#pep-322-reverse-iteration">PEP 322: Reverse Iteration</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#pep-324-new-subprocess-module">PEP 324: New subprocess Module</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#pep-327-decimal-data-type">PEP 327: Decimal Data Type</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.4.html#why-is-decimal-needed">Why is Decimal needed?</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.4.html#the-decimal-type">The <tt class="docutils literal"><span class="pre">Decimal</span></tt> type</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.4.html#the-context-type">The <tt class="docutils literal"><span class="pre">Context</span></tt> type</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#pep-328-multi-line-imports">PEP 328: Multi-line Imports</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#pep-331-locale-independent-float-string-conversions">PEP 331: Locale-Independent Float/String Conversions</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#other-language-changes">Other Language Changes</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.4.html#optimizations">Optimizations</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#new-improved-and-deprecated-modules">New, Improved, and Deprecated Modules</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.4.html#cookielib">cookielib</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.4.html#doctest">doctest</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#build-and-c-api-changes">Build and C API Changes</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.4.html#port-specific-changes">Port-Specific Changes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#porting-to-python-2-4">Porting to Python 2.4</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.4.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="whatsnew/2.3.html">What&#8217;s New in Python 2.3</a><ul>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-218-a-standard-set-datatype">PEP 218: A Standard Set Datatype</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-255-simple-generators">PEP 255: Simple Generators</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-263-source-code-encodings">PEP 263: Source Code Encodings</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-273-importing-modules-from-zip-archives">PEP 273: Importing Modules from ZIP Archives</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-277-unicode-file-name-support-for-windows-nt">PEP 277: Unicode file name support for Windows NT</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-278-universal-newline-support">PEP 278: Universal Newline Support</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-279-enumerate">PEP 279: enumerate()</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-282-the-logging-package">PEP 282: The logging Package</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-285-a-boolean-type">PEP 285: A Boolean Type</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-293-codec-error-handling-callbacks">PEP 293: Codec Error Handling Callbacks</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-301-package-index-and-metadata-for-distutils">PEP 301: Package Index and Metadata for Distutils</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-302-new-import-hooks">PEP 302: New Import Hooks</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-305-comma-separated-files">PEP 305: Comma-separated Files</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pep-307-pickle-enhancements">PEP 307: Pickle Enhancements</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#extended-slices">Extended Slices</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#other-language-changes">Other Language Changes</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.3.html#string-changes">String Changes</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.3.html#optimizations">Optimizations</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#new-improved-and-deprecated-modules">New, Improved, and Deprecated Modules</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.3.html#date-time-type">Date/Time Type</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.3.html#the-optparse-module">The optparse Module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#pymalloc-a-specialized-object-allocator">Pymalloc: A Specialized Object Allocator</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#build-and-c-api-changes">Build and C API Changes</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.3.html#port-specific-changes">Port-Specific Changes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#other-changes-and-fixes">Other Changes and Fixes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#porting-to-python-2-3">Porting to Python 2.3</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.3.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="whatsnew/2.2.html">What&#8217;s New in Python 2.2</a><ul>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.2.html#introduction">Introduction</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.2.html#peps-252-and-253-type-and-class-changes">PEPs 252 and 253: Type and Class Changes</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.2.html#old-and-new-classes">Old and New Classes</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.2.html#descriptors">Descriptors</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.2.html#multiple-inheritance-the-diamond-rule">Multiple Inheritance: The Diamond Rule</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.2.html#attribute-access">Attribute Access</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.2.html#related-links">Related Links</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.2.html#pep-234-iterators">PEP 234: Iterators</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.2.html#pep-255-simple-generators">PEP 255: Simple Generators</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.2.html#pep-237-unifying-long-integers-and-integers">PEP 237: Unifying Long Integers and Integers</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.2.html#pep-238-changing-the-division-operator">PEP 238: Changing the Division Operator</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.2.html#unicode-changes">Unicode Changes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.2.html#pep-227-nested-scopes">PEP 227: Nested Scopes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.2.html#new-and-improved-modules">New and Improved Modules</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.2.html#interpreter-changes-and-fixes">Interpreter Changes and Fixes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.2.html#other-changes-and-fixes">Other Changes and Fixes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.2.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="whatsnew/2.1.html">What&#8217;s New in Python 2.1</a><ul>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#introduction">Introduction</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#pep-227-nested-scopes">PEP 227: Nested Scopes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#pep-236-future-directives">PEP 236: __future__ Directives</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#pep-207-rich-comparisons">PEP 207: Rich Comparisons</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#pep-230-warning-framework">PEP 230: Warning Framework</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#pep-229-new-build-system">PEP 229: New Build System</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#pep-205-weak-references">PEP 205: Weak References</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#pep-232-function-attributes">PEP 232: Function Attributes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#pep-235-importing-modules-on-case-insensitive-platforms">PEP 235: Importing Modules on Case-Insensitive Platforms</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#pep-217-interactive-display-hook">PEP 217: Interactive Display Hook</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#pep-208-new-coercion-model">PEP 208: New Coercion Model</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#pep-241-metadata-in-python-packages">PEP 241: Metadata in Python Packages</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#new-and-improved-modules">New and Improved Modules</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#other-changes-and-fixes">Other Changes and Fixes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.1.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="whatsnew/2.0.html">What&#8217;s New in Python 2.0</a><ul>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#introduction">Introduction</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#what-about-python-1-6">What About Python 1.6?</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#new-development-process">New Development Process</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#unicode">Unicode</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#list-comprehensions">List Comprehensions</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#augmented-assignment">Augmented Assignment</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#string-methods">String Methods</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#garbage-collection-of-cycles">Garbage Collection of Cycles</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#other-core-changes">Other Core Changes</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.0.html#minor-language-changes">Minor Language Changes</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.0.html#changes-to-built-in-functions">Changes to Built-in Functions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#porting-to-2-0">Porting to 2.0</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#extending-embedding-changes">Extending/Embedding Changes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#distutils-making-modules-easy-to-install">Distutils: Making Modules Easy to Install</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#xml-modules">XML Modules</a><ul>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.0.html#sax2-support">SAX2 Support</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.0.html#dom-support">DOM Support</a></li>
<li class="toctree-l4"><a class="reference external" href="whatsnew/2.0.html#relationship-to-pyxml">Relationship to PyXML</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#module-changes">Module changes</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#new-modules">New modules</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#idle-improvements">IDLE Improvements</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#deleted-and-deprecated-modules">Deleted and Deprecated Modules</a></li>
<li class="toctree-l3"><a class="reference external" href="whatsnew/2.0.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="tutorial/index.html">The Python Tutorial</a><ul>
<li class="toctree-l2"><a class="reference external" href="tutorial/appetite.html">1. Whetting Your Appetite</a></li>
<li class="toctree-l2"><a class="reference external" href="tutorial/interpreter.html">2. Using the Python Interpreter</a><ul>
<li class="toctree-l3"><a class="reference external" href="tutorial/interpreter.html#invoking-the-interpreter">2.1. Invoking the Interpreter</a><ul>
<li class="toctree-l4"><a class="reference external" href="tutorial/interpreter.html#argument-passing">2.1.1. Argument Passing</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/interpreter.html#interactive-mode">2.1.2. Interactive Mode</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="tutorial/interpreter.html#the-interpreter-and-its-environment">2.2. The Interpreter and Its Environment</a><ul>
<li class="toctree-l4"><a class="reference external" href="tutorial/interpreter.html#error-handling">2.2.1. Error Handling</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/interpreter.html#executable-python-scripts">2.2.2. Executable Python Scripts</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/interpreter.html#source-code-encoding">2.2.3. Source Code Encoding</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/interpreter.html#the-interactive-startup-file">2.2.4. The Interactive Startup File</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="tutorial/introduction.html">3. An Informal Introduction to Python</a><ul>
<li class="toctree-l3"><a class="reference external" href="tutorial/introduction.html#using-python-as-a-calculator">3.1. Using Python as a Calculator</a><ul>
<li class="toctree-l4"><a class="reference external" href="tutorial/introduction.html#numbers">3.1.1. Numbers</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/introduction.html#strings">3.1.2. Strings</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/introduction.html#unicode-strings">3.1.3. Unicode Strings</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/introduction.html#lists">3.1.4. Lists</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="tutorial/introduction.html#first-steps-towards-programming">3.2. First Steps Towards Programming</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="tutorial/controlflow.html">4. More Control Flow Tools</a><ul>
<li class="toctree-l3"><a class="reference external" href="tutorial/controlflow.html#if-statements">4.1. <tt class="docutils literal"><span class="pre">if</span></tt> Statements</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/controlflow.html#for-statements">4.2. <tt class="docutils literal"><span class="pre">for</span></tt> Statements</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/controlflow.html#the-range-function">4.3. The <tt class="docutils literal"><span class="pre">range()</span></tt> Function</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops">4.4. <tt class="docutils literal"><span class="pre">break</span></tt> and <tt class="docutils literal"><span class="pre">continue</span></tt> Statements, and <tt class="docutils literal"><span class="pre">else</span></tt> Clauses on Loops</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/controlflow.html#pass-statements">4.5. <tt class="docutils literal"><span class="pre">pass</span></tt> Statements</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/controlflow.html#defining-functions">4.6. Defining Functions</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/controlflow.html#more-on-defining-functions">4.7. More on Defining Functions</a><ul>
<li class="toctree-l4"><a class="reference external" href="tutorial/controlflow.html#default-argument-values">4.7.1. Default Argument Values</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/controlflow.html#keyword-arguments">4.7.2. Keyword Arguments</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/controlflow.html#arbitrary-argument-lists">4.7.3. Arbitrary Argument Lists</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/controlflow.html#unpacking-argument-lists">4.7.4. Unpacking Argument Lists</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/controlflow.html#lambda-forms">4.7.5. Lambda Forms</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/controlflow.html#documentation-strings">4.7.6. Documentation Strings</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="tutorial/controlflow.html#intermezzo-coding-style">4.8. Intermezzo: Coding Style</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="tutorial/datastructures.html">5. Data Structures</a><ul>
<li class="toctree-l3"><a class="reference external" href="tutorial/datastructures.html#more-on-lists">5.1. More on Lists</a><ul>
<li class="toctree-l4"><a class="reference external" href="tutorial/datastructures.html#using-lists-as-stacks">5.1.1. Using Lists as Stacks</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/datastructures.html#using-lists-as-queues">5.1.2. Using Lists as Queues</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/datastructures.html#functional-programming-tools">5.1.3. Functional Programming Tools</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/datastructures.html#list-comprehensions">5.1.4. List Comprehensions</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/datastructures.html#nested-list-comprehensions">5.1.5. Nested List Comprehensions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="tutorial/datastructures.html#the-del-statement">5.2. The <tt class="docutils literal"><span class="pre">del</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/datastructures.html#tuples-and-sequences">5.3. Tuples and Sequences</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/datastructures.html#sets">5.4. Sets</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/datastructures.html#dictionaries">5.5. Dictionaries</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/datastructures.html#looping-techniques">5.6. Looping Techniques</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/datastructures.html#more-on-conditions">5.7. More on Conditions</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/datastructures.html#comparing-sequences-and-other-types">5.8. Comparing Sequences and Other Types</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="tutorial/modules.html">6. Modules</a><ul>
<li class="toctree-l3"><a class="reference external" href="tutorial/modules.html#more-on-modules">6.1. More on Modules</a><ul>
<li class="toctree-l4"><a class="reference external" href="tutorial/modules.html#executing-modules-as-scripts">6.1.1. Executing modules as scripts</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/modules.html#the-module-search-path">6.1.2. The Module Search Path</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/modules.html#compiled-python-files">6.1.3. &#8220;Compiled&#8221; Python files</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="tutorial/modules.html#standard-modules">6.2. Standard Modules</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/modules.html#the-dir-function">6.3. The <tt class="docutils literal"><span class="pre">dir()</span></tt> Function</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/modules.html#packages">6.4. Packages</a><ul>
<li class="toctree-l4"><a class="reference external" href="tutorial/modules.html#importing-from-a-package">6.4.1. Importing * From a Package</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/modules.html#intra-package-references">6.4.2. Intra-package References</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/modules.html#packages-in-multiple-directories">6.4.3. Packages in Multiple Directories</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="tutorial/inputoutput.html">7. Input and Output</a><ul>
<li class="toctree-l3"><a class="reference external" href="tutorial/inputoutput.html#fancier-output-formatting">7.1. Fancier Output Formatting</a><ul>
<li class="toctree-l4"><a class="reference external" href="tutorial/inputoutput.html#old-string-formatting">7.1.1. Old string formatting</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="tutorial/inputoutput.html#reading-and-writing-files">7.2. Reading and Writing Files</a><ul>
<li class="toctree-l4"><a class="reference external" href="tutorial/inputoutput.html#methods-of-file-objects">7.2.1. Methods of File Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/inputoutput.html#the-pickle-module">7.2.2. The <tt class="docutils literal"><span class="pre">pickle</span></tt> Module</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="tutorial/errors.html">8. Errors and Exceptions</a><ul>
<li class="toctree-l3"><a class="reference external" href="tutorial/errors.html#syntax-errors">8.1. Syntax Errors</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/errors.html#exceptions">8.2. Exceptions</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/errors.html#handling-exceptions">8.3. Handling Exceptions</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/errors.html#raising-exceptions">8.4. Raising Exceptions</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/errors.html#user-defined-exceptions">8.5. User-defined Exceptions</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/errors.html#defining-clean-up-actions">8.6. Defining Clean-up Actions</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/errors.html#predefined-clean-up-actions">8.7. Predefined Clean-up Actions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="tutorial/classes.html">9. Classes</a><ul>
<li class="toctree-l3"><a class="reference external" href="tutorial/classes.html#a-word-about-terminology">9.1. A Word About Terminology</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/classes.html#python-scopes-and-name-spaces">9.2. Python Scopes and Name Spaces</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/classes.html#a-first-look-at-classes">9.3. A First Look at Classes</a><ul>
<li class="toctree-l4"><a class="reference external" href="tutorial/classes.html#class-definition-syntax">9.3.1. Class Definition Syntax</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/classes.html#class-objects">9.3.2. Class Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/classes.html#instance-objects">9.3.3. Instance Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="tutorial/classes.html#method-objects">9.3.4. Method Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="tutorial/classes.html#random-remarks">9.4. Random Remarks</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/classes.html#inheritance">9.5. Inheritance</a><ul>
<li class="toctree-l4"><a class="reference external" href="tutorial/classes.html#multiple-inheritance">9.5.1. Multiple Inheritance</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="tutorial/classes.html#private-variables">9.6. Private Variables</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/classes.html#odds-and-ends">9.7. Odds and Ends</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/classes.html#exceptions-are-classes-too">9.8. Exceptions Are Classes Too</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/classes.html#iterators">9.9. Iterators</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/classes.html#generators">9.10. Generators</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/classes.html#generator-expressions">9.11. Generator Expressions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="tutorial/stdlib.html">10. Brief Tour of the Standard Library</a><ul>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib.html#operating-system-interface">10.1. Operating System Interface</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib.html#file-wildcards">10.2. File Wildcards</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib.html#command-line-arguments">10.3. Command Line Arguments</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib.html#error-output-redirection-and-program-termination">10.4. Error Output Redirection and Program Termination</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib.html#string-pattern-matching">10.5. String Pattern Matching</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib.html#mathematics">10.6. Mathematics</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib.html#internet-access">10.7. Internet Access</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib.html#dates-and-times">10.8. Dates and Times</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib.html#data-compression">10.9. Data Compression</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib.html#performance-measurement">10.10. Performance Measurement</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib.html#quality-control">10.11. Quality Control</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib.html#batteries-included">10.12. Batteries Included</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="tutorial/stdlib2.html">11. Brief Tour of the Standard Library &#8211; Part II</a><ul>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib2.html#output-formatting">11.1. Output Formatting</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib2.html#templating">11.2. Templating</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib2.html#working-with-binary-data-record-layouts">11.3. Working with Binary Data Record Layouts</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib2.html#multi-threading">11.4. Multi-threading</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib2.html#logging">11.5. Logging</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib2.html#weak-references">11.6. Weak References</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib2.html#tools-for-working-with-lists">11.7. Tools for Working with Lists</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/stdlib2.html#decimal-floating-point-arithmetic">11.8. Decimal Floating Point Arithmetic</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="tutorial/whatnow.html">12. What Now?</a></li>
<li class="toctree-l2"><a class="reference external" href="tutorial/interactive.html">13. Interactive Input Editing and History Substitution</a><ul>
<li class="toctree-l3"><a class="reference external" href="tutorial/interactive.html#line-editing">13.1. Line Editing</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/interactive.html#history-substitution">13.2. History Substitution</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/interactive.html#key-bindings">13.3. Key Bindings</a></li>
<li class="toctree-l3"><a class="reference external" href="tutorial/interactive.html#commentary">13.4. Commentary</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="tutorial/floatingpoint.html">14. Floating Point Arithmetic:  Issues and Limitations</a><ul>
<li class="toctree-l3"><a class="reference external" href="tutorial/floatingpoint.html#representation-error">14.1. Representation Error</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="using/index.html">Using Python</a><ul>
<li class="toctree-l2"><a class="reference external" href="using/cmdline.html">1. Command line and environment</a><ul>
<li class="toctree-l3"><a class="reference external" href="using/cmdline.html#command-line">1.1. Command line</a><ul>
<li class="toctree-l4"><a class="reference external" href="using/cmdline.html#interface-options">1.1.1. Interface options</a></li>
<li class="toctree-l4"><a class="reference external" href="using/cmdline.html#generic-options">1.1.2. Generic options</a></li>
<li class="toctree-l4"><a class="reference external" href="using/cmdline.html#miscellaneous-options">1.1.3. Miscellaneous options</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="using/cmdline.html#environment-variables">1.2. Environment variables</a><ul>
<li class="toctree-l4"><a class="reference external" href="using/cmdline.html#debug-mode-variables">1.2.1. Debug-mode variables</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="using/unix.html">2. Using Python on Unix platforms</a><ul>
<li class="toctree-l3"><a class="reference external" href="using/unix.html#getting-and-installing-the-latest-version-of-python">2.1. Getting and installing the latest version of Python</a><ul>
<li class="toctree-l4"><a class="reference external" href="using/unix.html#on-linux">2.1.1. On Linux</a></li>
<li class="toctree-l4"><a class="reference external" href="using/unix.html#on-freebsd-and-openbsd">2.1.2. On FreeBSD and OpenBSD</a></li>
<li class="toctree-l4"><a class="reference external" href="using/unix.html#on-opensolaris">2.1.3. On OpenSolaris</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="using/unix.html#building-python">2.2. Building Python</a></li>
<li class="toctree-l3"><a class="reference external" href="using/unix.html#python-related-paths-and-files">2.3. Python-related paths and files</a></li>
<li class="toctree-l3"><a class="reference external" href="using/unix.html#miscellaneous">2.4. Miscellaneous</a></li>
<li class="toctree-l3"><a class="reference external" href="using/unix.html#editors">2.5. Editors</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="using/windows.html">3. Using Python on Windows</a><ul>
<li class="toctree-l3"><a class="reference external" href="using/windows.html#installing-python">3.1. Installing Python</a></li>
<li class="toctree-l3"><a class="reference external" href="using/windows.html#alternative-bundles">3.2. Alternative bundles</a></li>
<li class="toctree-l3"><a class="reference external" href="using/windows.html#configuring-python">3.3. Configuring Python</a><ul>
<li class="toctree-l4"><a class="reference external" href="using/windows.html#excursus-setting-environment-variables">3.3.1. Excursus: Setting environment variables</a></li>
<li class="toctree-l4"><a class="reference external" href="using/windows.html#finding-the-python-executable">3.3.2. Finding the Python executable</a></li>
<li class="toctree-l4"><a class="reference external" href="using/windows.html#finding-modules">3.3.3. Finding modules</a></li>
<li class="toctree-l4"><a class="reference external" href="using/windows.html#executing-scripts">3.3.4. Executing scripts</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="using/windows.html#additional-modules">3.4. Additional modules</a><ul>
<li class="toctree-l4"><a class="reference external" href="using/windows.html#pywin32">3.4.1. PyWin32</a></li>
<li class="toctree-l4"><a class="reference external" href="using/windows.html#py2exe">3.4.2. Py2exe</a></li>
<li class="toctree-l4"><a class="reference external" href="using/windows.html#wconio">3.4.3. WConio</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="using/windows.html#compiling-python-on-windows">3.5. Compiling Python on Windows</a></li>
<li class="toctree-l3"><a class="reference external" href="using/windows.html#other-resources">3.6. Other resources</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="using/mac.html">4. Using Python on a Macintosh</a><ul>
<li class="toctree-l3"><a class="reference external" href="using/mac.html#getting-and-installing-macpython">4.1. Getting and Installing MacPython</a><ul>
<li class="toctree-l4"><a class="reference external" href="using/mac.html#how-to-run-a-python-script">4.1.1. How to run a Python script</a></li>
<li class="toctree-l4"><a class="reference external" href="using/mac.html#running-scripts-with-a-gui">4.1.2. Running scripts with a GUI</a></li>
<li class="toctree-l4"><a class="reference external" href="using/mac.html#configuration">4.1.3. Configuration</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="using/mac.html#the-ide">4.2. The IDE</a></li>
<li class="toctree-l3"><a class="reference external" href="using/mac.html#installing-additional-python-packages">4.3. Installing Additional Python Packages</a></li>
<li class="toctree-l3"><a class="reference external" href="using/mac.html#gui-programming-on-the-mac">4.4. GUI Programming on the Mac</a></li>
<li class="toctree-l3"><a class="reference external" href="using/mac.html#distributing-python-applications-on-the-mac">4.5. Distributing Python Applications on the Mac</a></li>
<li class="toctree-l3"><a class="reference external" href="using/mac.html#application-scripting">4.6. Application Scripting</a></li>
<li class="toctree-l3"><a class="reference external" href="using/mac.html#other-resources">4.7. Other Resources</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="reference/index.html">The Python Language Reference</a><ul>
<li class="toctree-l2"><a class="reference external" href="reference/introduction.html">1. Introduction</a><ul>
<li class="toctree-l3"><a class="reference external" href="reference/introduction.html#alternate-implementations">1.1. Alternate Implementations</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/introduction.html#notation">1.2. Notation</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="reference/lexical_analysis.html">2. Lexical analysis</a><ul>
<li class="toctree-l3"><a class="reference external" href="reference/lexical_analysis.html#line-structure">2.1. Line structure</a><ul>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#logical-lines">2.1.1. Logical lines</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#physical-lines">2.1.2. Physical lines</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#comments">2.1.3. Comments</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#encoding-declarations">2.1.4. Encoding declarations</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#explicit-line-joining">2.1.5. Explicit line joining</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#implicit-line-joining">2.1.6. Implicit line joining</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#blank-lines">2.1.7. Blank lines</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#indentation">2.1.8. Indentation</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#whitespace-between-tokens">2.1.9. Whitespace between tokens</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="reference/lexical_analysis.html#other-tokens">2.2. Other tokens</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/lexical_analysis.html#identifiers">2.3. Identifiers and keywords</a><ul>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#keywords">2.3.1. Keywords</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#reserved-classes-of-identifiers">2.3.2. Reserved classes of identifiers</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="reference/lexical_analysis.html#literals">2.4. Literals</a><ul>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#string-literals">2.4.1. String literals</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#string-literal-concatenation">2.4.2. String literal concatenation</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#numeric-literals">2.4.3. Numeric literals</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#integer-and-long-integer-literals">2.4.4. Integer and long integer literals</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#floating-point-literals">2.4.5. Floating point literals</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/lexical_analysis.html#imaginary-literals">2.4.6. Imaginary literals</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="reference/lexical_analysis.html#operators">2.5. Operators</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/lexical_analysis.html#delimiters">2.6. Delimiters</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="reference/datamodel.html">3. Data model</a><ul>
<li class="toctree-l3"><a class="reference external" href="reference/datamodel.html#objects-values-and-types">3.1. Objects, values and types</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/datamodel.html#the-standard-type-hierarchy">3.2. The standard type hierarchy</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/datamodel.html#new-style-and-classic-classes">3.3. New-style and classic classes</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/datamodel.html#special-method-names">3.4. Special method names</a><ul>
<li class="toctree-l4"><a class="reference external" href="reference/datamodel.html#basic-customization">3.4.1. Basic customization</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/datamodel.html#customizing-attribute-access">3.4.2. Customizing attribute access</a><ul>
<li class="toctree-l5"><a class="reference external" href="reference/datamodel.html#more-attribute-access-for-new-style-classes">3.4.2.1. More attribute access for new-style classes</a></li>
<li class="toctree-l5"><a class="reference external" href="reference/datamodel.html#implementing-descriptors">3.4.2.2. Implementing Descriptors</a></li>
<li class="toctree-l5"><a class="reference external" href="reference/datamodel.html#invoking-descriptors">3.4.2.3. Invoking Descriptors</a></li>
<li class="toctree-l5"><a class="reference external" href="reference/datamodel.html#slots">3.4.2.4. __slots__</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="reference/datamodel.html#customizing-class-creation">3.4.3. Customizing class creation</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/datamodel.html#emulating-callable-objects">3.4.4. Emulating callable objects</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/datamodel.html#emulating-container-types">3.4.5. Emulating container types</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/datamodel.html#additional-methods-for-emulation-of-sequence-types">3.4.6. Additional methods for emulation of sequence types</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/datamodel.html#emulating-numeric-types">3.4.7. Emulating numeric types</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/datamodel.html#coercion-rules">3.4.8. Coercion rules</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/datamodel.html#with-statement-context-managers">3.4.9. With Statement Context Managers</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/datamodel.html#special-method-lookup-for-old-style-classes">3.4.10. Special method lookup for old-style classes</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/datamodel.html#special-method-lookup-for-new-style-classes">3.4.11. Special method lookup for new-style classes</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="reference/executionmodel.html">4. Execution model</a><ul>
<li class="toctree-l3"><a class="reference external" href="reference/executionmodel.html#naming-and-binding">4.1. Naming and binding</a><ul>
<li class="toctree-l4"><a class="reference external" href="reference/executionmodel.html#interaction-with-dynamic-features">4.1.1. Interaction with dynamic features</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="reference/executionmodel.html#exceptions">4.2. Exceptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="reference/expressions.html">5. Expressions</a><ul>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#arithmetic-conversions">5.1. Arithmetic conversions</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#atoms">5.2. Atoms</a><ul>
<li class="toctree-l4"><a class="reference external" href="reference/expressions.html#atom-identifiers">5.2.1. Identifiers (Names)</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/expressions.html#literals">5.2.2. Literals</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/expressions.html#parenthesized-forms">5.2.3. Parenthesized forms</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/expressions.html#list-displays">5.2.4. List displays</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/expressions.html#generator-expressions">5.2.5. Generator expressions</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/expressions.html#dictionary-displays">5.2.6. Dictionary displays</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/expressions.html#string-conversions">5.2.7. String conversions</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/expressions.html#yield-expressions">5.2.8. Yield expressions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#primaries">5.3. Primaries</a><ul>
<li class="toctree-l4"><a class="reference external" href="reference/expressions.html#attribute-references">5.3.1. Attribute references</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/expressions.html#subscriptions">5.3.2. Subscriptions</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/expressions.html#slicings">5.3.3. Slicings</a></li>
<li class="toctree-l4"><a class="reference external" href="reference/expressions.html#calls">5.3.4. Calls</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#the-power-operator">5.4. The power operator</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#unary-arithmetic-and-bitwise-operations">5.5. Unary arithmetic and bitwise operations</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#binary-arithmetic-operations">5.6. Binary arithmetic operations</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#shifting-operations">5.7. Shifting operations</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#binary-bitwise-operations">5.8. Binary bitwise operations</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#notin">5.9. Comparisons</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#boolean-operations">5.10. Boolean operations</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#lambdas">5.11. Lambdas</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#expression-lists">5.12. Expression lists</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#evaluation-order">5.13. Evaluation order</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/expressions.html#summary">5.14. Summary</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="reference/simple_stmts.html">6. Simple statements</a><ul>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#expression-statements">6.1. Expression statements</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#assignment-statements">6.2. Assignment statements</a><ul>
<li class="toctree-l4"><a class="reference external" href="reference/simple_stmts.html#augmented-assignment-statements">6.2.1. Augmented assignment statements</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#the-assert-statement">6.3. The <tt class="docutils literal"><span class="pre">assert</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#the-pass-statement">6.4. The <tt class="docutils literal"><span class="pre">pass</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#the-del-statement">6.5. The <tt class="docutils literal"><span class="pre">del</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#the-print-statement">6.6. The <tt class="docutils literal"><span class="pre">print</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#the-return-statement">6.7. The <tt class="docutils literal"><span class="pre">return</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#the-yield-statement">6.8. The <tt class="docutils literal"><span class="pre">yield</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#the-raise-statement">6.9. The <tt class="docutils literal"><span class="pre">raise</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#the-break-statement">6.10. The <tt class="docutils literal"><span class="pre">break</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#the-continue-statement">6.11. The <tt class="docutils literal"><span class="pre">continue</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#the-import-statement">6.12. The <tt class="docutils literal"><span class="pre">import</span></tt> statement</a><ul>
<li class="toctree-l4"><a class="reference external" href="reference/simple_stmts.html#future-statements">6.12.1. Future statements</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#the-global-statement">6.13. The <tt class="docutils literal"><span class="pre">global</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/simple_stmts.html#the-exec-statement">6.14. The <tt class="docutils literal"><span class="pre">exec</span></tt> statement</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="reference/compound_stmts.html">7. Compound statements</a><ul>
<li class="toctree-l3"><a class="reference external" href="reference/compound_stmts.html#the-if-statement">7.1. The <tt class="docutils literal"><span class="pre">if</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/compound_stmts.html#the-while-statement">7.2. The <tt class="docutils literal"><span class="pre">while</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/compound_stmts.html#the-for-statement">7.3. The <tt class="docutils literal"><span class="pre">for</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/compound_stmts.html#the-try-statement">7.4. The <tt class="docutils literal"><span class="pre">try</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/compound_stmts.html#the-with-statement">7.5. The <tt class="docutils literal"><span class="pre">with</span></tt> statement</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/compound_stmts.html#function-definitions">7.6. Function definitions</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/compound_stmts.html#class-definitions">7.7. Class definitions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="reference/toplevel_components.html">8. Top-level components</a><ul>
<li class="toctree-l3"><a class="reference external" href="reference/toplevel_components.html#complete-python-programs">8.1. Complete Python programs</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/toplevel_components.html#file-input">8.2. File input</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/toplevel_components.html#interactive-input">8.3. Interactive input</a></li>
<li class="toctree-l3"><a class="reference external" href="reference/toplevel_components.html#expression-input">8.4. Expression input</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="reference/grammar.html">9. Full Grammar specification</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="library/index.html">The Python Standard Library</a><ul>
<li class="toctree-l2"><a class="reference external" href="library/intro.html">1. Introduction</a></li>
<li class="toctree-l2"><a class="reference external" href="library/functions.html">2. Built-in Functions</a></li>
<li class="toctree-l2"><a class="reference external" href="library/functions.html#non-essential-built-in-functions">3. Non-essential Built-in Functions</a></li>
<li class="toctree-l2"><a class="reference external" href="library/constants.html">4. Built-in Constants</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/constants.html#constants-added-by-the-site-module">4.1. Constants added by the <tt class="docutils literal"><span class="pre">site</span></tt> module</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/objects.html">5. Built-in Objects</a></li>
<li class="toctree-l2"><a class="reference external" href="library/stdtypes.html">6. Built-in Types</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/stdtypes.html#truth-value-testing">6.1. Truth Value Testing</a></li>
<li class="toctree-l3"><a class="reference external" href="library/stdtypes.html#boolean-operations-and-or-not">6.2. Boolean Operations &#8212; <tt class="docutils literal"><span class="pre">and</span></tt>, <tt class="docutils literal"><span class="pre">or</span></tt>, <tt class="docutils literal"><span class="pre">not</span></tt></a></li>
<li class="toctree-l3"><a class="reference external" href="library/stdtypes.html#comparisons">6.3. Comparisons</a></li>
<li class="toctree-l3"><a class="reference external" href="library/stdtypes.html#numeric-types-int-float-long-complex">6.4. Numeric Types &#8212; <tt class="docutils literal"><span class="pre">int</span></tt>, <tt class="docutils literal"><span class="pre">float</span></tt>, <tt class="docutils literal"><span class="pre">long</span></tt>, <tt class="docutils literal"><span class="pre">complex</span></tt></a><ul>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#bit-string-operations-on-integer-types">6.4.1. Bit-string Operations on Integer Types</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#additional-methods-on-float">6.4.2. Additional Methods on Float</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/stdtypes.html#iterator-types">6.5. Iterator Types</a></li>
<li class="toctree-l3"><a class="reference external" href="library/stdtypes.html#sequence-types-str-unicode-list-tuple-buffer-xrange">6.6. Sequence Types &#8212; <tt class="docutils literal"><span class="pre">str</span></tt>, <tt class="docutils literal"><span class="pre">unicode</span></tt>, <tt class="docutils literal"><span class="pre">list</span></tt>, <tt class="docutils literal"><span class="pre">tuple</span></tt>, <tt class="docutils literal"><span class="pre">buffer</span></tt>, <tt class="docutils literal"><span class="pre">xrange</span></tt></a><ul>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#string-methods">6.6.1. String Methods</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#string-formatting-operations">6.6.2. String Formatting Operations</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#xrange-type">6.6.3. XRange Type</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#mutable-sequence-types">6.6.4. Mutable Sequence Types</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/stdtypes.html#set-types-set-frozenset">6.7. Set Types &#8212; <tt class="docutils literal"><span class="pre">set</span></tt>, <tt class="docutils literal"><span class="pre">frozenset</span></tt></a></li>
<li class="toctree-l3"><a class="reference external" href="library/stdtypes.html#mapping-types-dict">6.8. Mapping Types &#8212; <tt class="docutils literal"><span class="pre">dict</span></tt></a></li>
<li class="toctree-l3"><a class="reference external" href="library/stdtypes.html#file-objects">6.9. File Objects</a></li>
<li class="toctree-l3"><a class="reference external" href="library/stdtypes.html#context-manager-types">6.10. Context Manager Types</a></li>
<li class="toctree-l3"><a class="reference external" href="library/stdtypes.html#other-built-in-types">6.11. Other Built-in Types</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#modules">6.11.1. Modules</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#classes-and-class-instances">6.11.2. Classes and Class Instances</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#functions">6.11.3. Functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#methods">6.11.4. Methods</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#code-objects">6.11.5. Code Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#type-objects">6.11.6. Type Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#the-null-object">6.11.7. The Null Object</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#the-ellipsis-object">6.11.8. The Ellipsis Object</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#boolean-values">6.11.9. Boolean Values</a></li>
<li class="toctree-l4"><a class="reference external" href="library/stdtypes.html#internal-objects">6.11.10. Internal Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/stdtypes.html#special-attributes">6.12. Special Attributes</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/exceptions.html">7. Built-in Exceptions</a></li>
<li class="toctree-l2"><a class="reference external" href="library/strings.html">8. String Services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/string.html">8.1. <tt class="docutils literal"><span class="pre">string</span></tt> &#8212; Common string operations</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/string.html#string-constants">8.1.1. String constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/string.html#string-formatting">8.1.2. String Formatting</a></li>
<li class="toctree-l4"><a class="reference external" href="library/string.html#format-string-syntax">8.1.3. Format String Syntax</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/string.html#format-specification-mini-language">8.1.3.1. Format Specification Mini-Language</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/string.html#template-strings">8.1.4. Template strings</a></li>
<li class="toctree-l4"><a class="reference external" href="library/string.html#string-functions">8.1.5. String functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/string.html#deprecated-string-functions">8.1.6. Deprecated string functions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/re.html">8.2. <tt class="docutils literal"><span class="pre">re</span></tt> &#8212; Regular expression operations</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/re.html#regular-expression-syntax">8.2.1. Regular Expression Syntax</a></li>
<li class="toctree-l4"><a class="reference external" href="library/re.html#matching-vs-searching">8.2.2. Matching vs Searching</a></li>
<li class="toctree-l4"><a class="reference external" href="library/re.html#module-contents">8.2.3. Module Contents</a></li>
<li class="toctree-l4"><a class="reference external" href="library/re.html#regular-expression-objects">8.2.4. Regular Expression Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/re.html#match-objects">8.2.5. Match Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/re.html#examples">8.2.6. Examples</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/re.html#checking-for-a-pair">8.2.6.1. Checking For a Pair</a></li>
<li class="toctree-l5"><a class="reference external" href="library/re.html#simulating-scanf">8.2.6.2. Simulating scanf()</a></li>
<li class="toctree-l5"><a class="reference external" href="library/re.html#avoiding-recursion">8.2.6.3. Avoiding recursion</a></li>
<li class="toctree-l5"><a class="reference external" href="library/re.html#search-vs-match">8.2.6.4. search() vs. match()</a></li>
<li class="toctree-l5"><a class="reference external" href="library/re.html#making-a-phonebook">8.2.6.5. Making a Phonebook</a></li>
<li class="toctree-l5"><a class="reference external" href="library/re.html#text-munging">8.2.6.6. Text Munging</a></li>
<li class="toctree-l5"><a class="reference external" href="library/re.html#finding-all-adverbs">8.2.6.7. Finding all Adverbs</a></li>
<li class="toctree-l5"><a class="reference external" href="library/re.html#finding-all-adverbs-and-their-positions">8.2.6.8. Finding all Adverbs and their Positions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/re.html#raw-string-notation">8.2.6.9. Raw String Notation</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/struct.html">8.3. <tt class="docutils literal"><span class="pre">struct</span></tt> &#8212; Interpret strings as packed binary data</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/struct.html#struct-objects">8.3.1. Struct Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/difflib.html">8.4. <tt class="docutils literal"><span class="pre">difflib</span></tt> &#8212; Helpers for computing deltas</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/difflib.html#sequencematcher-objects">8.4.1. SequenceMatcher Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/difflib.html#sequencematcher-examples">8.4.2. SequenceMatcher Examples</a></li>
<li class="toctree-l4"><a class="reference external" href="library/difflib.html#differ-objects">8.4.3. Differ Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/difflib.html#differ-example">8.4.4. Differ Example</a></li>
<li class="toctree-l4"><a class="reference external" href="library/difflib.html#a-command-line-interface-to-difflib">8.4.5. A command-line interface to difflib</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/stringio.html">8.5. <tt class="docutils literal"><span class="pre">StringIO</span></tt> &#8212; Read and write strings as files</a></li>
<li class="toctree-l3"><a class="reference external" href="library/stringio.html#module-cStringIO">8.6. <tt class="docutils literal"><span class="pre">cStringIO</span></tt> &#8212; Faster version of <tt class="docutils literal"><span class="pre">StringIO</span></tt></a></li>
<li class="toctree-l3"><a class="reference external" href="library/textwrap.html">8.7. <tt class="docutils literal"><span class="pre">textwrap</span></tt> &#8212; Text wrapping and filling</a></li>
<li class="toctree-l3"><a class="reference external" href="library/codecs.html">8.8. <tt class="docutils literal"><span class="pre">codecs</span></tt> &#8212; Codec registry and base classes</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/codecs.html#codec-base-classes">8.8.1. Codec Base Classes</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/codecs.html#codec-objects">8.8.1.1. Codec Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/codecs.html#incrementalencoder-objects">8.8.1.2. IncrementalEncoder Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/codecs.html#incrementaldecoder-objects">8.8.1.3. IncrementalDecoder Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/codecs.html#streamwriter-objects">8.8.1.4. StreamWriter Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/codecs.html#streamreader-objects">8.8.1.5. StreamReader Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/codecs.html#streamreaderwriter-objects">8.8.1.6. StreamReaderWriter Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/codecs.html#streamrecoder-objects">8.8.1.7. StreamRecoder Objects</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/codecs.html#encodings-and-unicode">8.8.2. Encodings and Unicode</a></li>
<li class="toctree-l4"><a class="reference external" href="library/codecs.html#standard-encodings">8.8.3. Standard Encodings</a></li>
<li class="toctree-l4"><a class="reference external" href="library/codecs.html#module-encodings.idna">8.8.4. <tt class="docutils literal"><span class="pre">encodings.idna</span></tt> &#8212; Internationalized Domain Names in Applications</a></li>
<li class="toctree-l4"><a class="reference external" href="library/codecs.html#module-encodings.utf_8_sig">8.8.5. <tt class="docutils literal"><span class="pre">encodings.utf_8_sig</span></tt> &#8212; UTF-8 codec with BOM signature</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/unicodedata.html">8.9. <tt class="docutils literal"><span class="pre">unicodedata</span></tt> &#8212; Unicode Database</a></li>
<li class="toctree-l3"><a class="reference external" href="library/stringprep.html">8.10. <tt class="docutils literal"><span class="pre">stringprep</span></tt> &#8212; Internet String Preparation</a></li>
<li class="toctree-l3"><a class="reference external" href="library/fpformat.html">8.11. <tt class="docutils literal"><span class="pre">fpformat</span></tt> &#8212; Floating point conversions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/datatypes.html">9. Data Types</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/datetime.html">9.1. <tt class="docutils literal"><span class="pre">datetime</span></tt> &#8212; Basic date and time types</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/datetime.html#available-types">9.1.1. Available Types</a></li>
<li class="toctree-l4"><a class="reference external" href="library/datetime.html#timedelta-objects">9.1.2. <tt class="docutils literal"><span class="pre">timedelta</span></tt> Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/datetime.html#date-objects">9.1.3. <tt class="docutils literal"><span class="pre">date</span></tt> Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/datetime.html#datetime-objects">9.1.4. <tt class="docutils literal"><span class="pre">datetime</span></tt> Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/datetime.html#time-objects">9.1.5. <tt class="docutils literal"><span class="pre">time</span></tt> Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/datetime.html#tzinfo-objects">9.1.6. <tt class="docutils literal"><span class="pre">tzinfo</span></tt> Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/datetime.html#strftime-behavior">9.1.7. <tt class="docutils literal"><span class="pre">strftime()</span></tt> Behavior</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/calendar.html">9.2. <tt class="docutils literal"><span class="pre">calendar</span></tt> &#8212; General calendar-related functions</a></li>
<li class="toctree-l3"><a class="reference external" href="library/collections.html">9.3. <tt class="docutils literal"><span class="pre">collections</span></tt> &#8212; High-performance container datatypes</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/collections.html#abcs-abstract-base-classes">9.3.1. ABCs - abstract base classes</a></li>
<li class="toctree-l4"><a class="reference external" href="library/collections.html#deque-objects">9.3.2. <tt class="docutils literal"><span class="pre">deque</span></tt> objects</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/collections.html#deque-recipes">9.3.2.1. <tt class="docutils literal"><span class="pre">deque</span></tt> Recipes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/collections.html#defaultdict-objects">9.3.3. <tt class="docutils literal"><span class="pre">defaultdict</span></tt> objects</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/collections.html#defaultdict-examples">9.3.3.1. <tt class="docutils literal"><span class="pre">defaultdict</span></tt> Examples</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields">9.3.4. <tt class="docutils literal"><span class="pre">namedtuple()</span></tt> Factory Function for Tuples with Named Fields</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/heapq.html">9.4. <tt class="docutils literal"><span class="pre">heapq</span></tt> &#8212; Heap queue algorithm</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/heapq.html#theory">9.4.1. Theory</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/bisect.html">9.5. <tt class="docutils literal"><span class="pre">bisect</span></tt> &#8212; Array bisection algorithm</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/bisect.html#examples">9.5.1. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/array.html">9.6. <tt class="docutils literal"><span class="pre">array</span></tt> &#8212; Efficient arrays of numeric values</a></li>
<li class="toctree-l3"><a class="reference external" href="library/sets.html">9.7. <tt class="docutils literal"><span class="pre">sets</span></tt> &#8212; Unordered collections of unique elements</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/sets.html#set-objects">9.7.1. Set Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/sets.html#example">9.7.2. Example</a></li>
<li class="toctree-l4"><a class="reference external" href="library/sets.html#protocol-for-automatic-conversion-to-immutable">9.7.3. Protocol for automatic conversion to immutable</a></li>
<li class="toctree-l4"><a class="reference external" href="library/sets.html#comparison-to-the-built-in-set-types">9.7.4. Comparison to the built-in <tt class="docutils literal"><span class="pre">set</span></tt> types</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/sched.html">9.8. <tt class="docutils literal"><span class="pre">sched</span></tt> &#8212; Event scheduler</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/sched.html#scheduler-objects">9.8.1. Scheduler Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/mutex.html">9.9. <tt class="docutils literal"><span class="pre">mutex</span></tt> &#8212; Mutual exclusion support</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/mutex.html#mutex-objects">9.9.1. Mutex Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/queue.html">9.10. <tt class="docutils literal"><span class="pre">queue</span></tt> &#8212; A synchronized queue class</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/queue.html#queue-objects">9.10.1. Queue Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/weakref.html">9.11. <tt class="docutils literal"><span class="pre">weakref</span></tt> &#8212; Weak references</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/weakref.html#weak-reference-objects">9.11.1. Weak Reference Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/weakref.html#example">9.11.2. Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/userdict.html">9.12. <tt class="docutils literal"><span class="pre">UserDict</span></tt> &#8212; Class wrapper for dictionary objects</a></li>
<li class="toctree-l3"><a class="reference external" href="library/userdict.html#module-UserList">9.13. <tt class="docutils literal"><span class="pre">UserList</span></tt> &#8212; Class wrapper for list objects</a></li>
<li class="toctree-l3"><a class="reference external" href="library/userdict.html#module-UserString">9.14. <tt class="docutils literal"><span class="pre">UserString</span></tt> &#8212; Class wrapper for string objects</a></li>
<li class="toctree-l3"><a class="reference external" href="library/types.html">9.15. <tt class="docutils literal"><span class="pre">types</span></tt> &#8212; Names for built-in types</a></li>
<li class="toctree-l3"><a class="reference external" href="library/new.html">9.16. <tt class="docutils literal"><span class="pre">new</span></tt> &#8212; Creation of runtime internal objects</a></li>
<li class="toctree-l3"><a class="reference external" href="library/copy.html">9.17. <tt class="docutils literal"><span class="pre">copy</span></tt> &#8212; Shallow and deep copy operations</a></li>
<li class="toctree-l3"><a class="reference external" href="library/pprint.html">9.18. <tt class="docutils literal"><span class="pre">pprint</span></tt> &#8212; Data pretty printer</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/pprint.html#prettyprinter-objects">9.18.1. PrettyPrinter Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/pprint.html#pprint-example">9.18.2. pprint Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/repr.html">9.19. <tt class="docutils literal"><span class="pre">repr</span></tt> &#8212; Alternate <tt class="docutils literal"><span class="pre">repr()</span></tt> implementation</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/repr.html#repr-objects">9.19.1. Repr Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/repr.html#subclassing-repr-objects">9.19.2. Subclassing Repr Objects</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/numeric.html">10. Numeric and Mathematical Modules</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/numbers.html">10.1. <tt class="docutils literal"><span class="pre">numbers</span></tt> &#8212; Numeric abstract base classes</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/numbers.html#the-numeric-tower">10.1.1. The numeric tower</a></li>
<li class="toctree-l4"><a class="reference external" href="library/numbers.html#notes-for-type-implementors">10.1.2. Notes for type implementors</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/numbers.html#adding-more-numeric-abcs">10.1.2.1. Adding More Numeric ABCs</a></li>
<li class="toctree-l5"><a class="reference external" href="library/numbers.html#implementing-the-arithmetic-operations">10.1.2.2. Implementing the arithmetic operations</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/math.html">10.2. <tt class="docutils literal"><span class="pre">math</span></tt> &#8212; Mathematical functions</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/math.html#number-theoretic-and-representation-functions">10.2.1. Number-theoretic and representation functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/math.html#power-and-logarithmic-functions">10.2.2. Power and logarithmic functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/math.html#trigonometric-functions">10.2.3. Trigonometric functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/math.html#angular-conversion">10.2.4. Angular conversion</a></li>
<li class="toctree-l4"><a class="reference external" href="library/math.html#hyperbolic-functions">10.2.5. Hyperbolic functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/math.html#constants">10.2.6. Constants</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/cmath.html">10.3. <tt class="docutils literal"><span class="pre">cmath</span></tt> &#8212; Mathematical functions for complex numbers</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/cmath.html#complex-coordinates">10.3.1. Complex coordinates</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cmath.html#cmath-functions">10.3.2. cmath functions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/decimal.html">10.4. <tt class="docutils literal"><span class="pre">decimal</span></tt> &#8212; Decimal fixed point and floating point arithmetic</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/decimal.html#quick-start-tutorial">10.4.1. Quick-start Tutorial</a></li>
<li class="toctree-l4"><a class="reference external" href="library/decimal.html#decimal-objects">10.4.2. Decimal objects</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/decimal.html#logical-operands">10.4.2.1. Logical operands</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/decimal.html#context-objects">10.4.3. Context objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/decimal.html#signals">10.4.4. Signals</a></li>
<li class="toctree-l4"><a class="reference external" href="library/decimal.html#floating-point-notes">10.4.5. Floating Point Notes</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/decimal.html#mitigating-round-off-error-with-increased-precision">10.4.5.1. Mitigating round-off error with increased precision</a></li>
<li class="toctree-l5"><a class="reference external" href="library/decimal.html#special-values">10.4.5.2. Special values</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/decimal.html#working-with-threads">10.4.6. Working with threads</a></li>
<li class="toctree-l4"><a class="reference external" href="library/decimal.html#recipes">10.4.7. Recipes</a></li>
<li class="toctree-l4"><a class="reference external" href="library/decimal.html#decimal-faq">10.4.8. Decimal FAQ</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/fractions.html">10.5. <tt class="docutils literal"><span class="pre">fractions</span></tt> &#8212; Rational numbers</a></li>
<li class="toctree-l3"><a class="reference external" href="library/random.html">10.6. <tt class="docutils literal"><span class="pre">random</span></tt> &#8212; Generate pseudo-random numbers</a></li>
<li class="toctree-l3"><a class="reference external" href="library/itertools.html">10.7. <tt class="docutils literal"><span class="pre">itertools</span></tt> &#8212; Functions creating iterators for efficient looping</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/itertools.html#itertool-functions">10.7.1. Itertool functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/itertools.html#examples">10.7.2. Examples</a></li>
<li class="toctree-l4"><a class="reference external" href="library/itertools.html#recipes">10.7.3. Recipes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/functools.html">10.8. <tt class="docutils literal"><span class="pre">functools</span></tt> &#8212; Higher order functions and operations on callable objects</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/functools.html#partial-objects">10.8.1. <tt class="docutils literal"><span class="pre">partial</span></tt> Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/operator.html">10.9. <tt class="docutils literal"><span class="pre">operator</span></tt> &#8212; Standard operators as functions</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/operator.html#mapping-operators-to-functions">10.9.1. Mapping Operators to Functions</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/filesys.html">11. File and Directory Access</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/os.path.html">11.1. <tt class="docutils literal"><span class="pre">os.path</span></tt> &#8212; Common pathname manipulations</a></li>
<li class="toctree-l3"><a class="reference external" href="library/fileinput.html">11.2. <tt class="docutils literal"><span class="pre">fileinput</span></tt> &#8212; Iterate over lines from multiple input streams</a></li>
<li class="toctree-l3"><a class="reference external" href="library/stat.html">11.3. <tt class="docutils literal"><span class="pre">stat</span></tt> &#8212; Interpreting <tt class="docutils literal"><span class="pre">stat()</span></tt> results</a></li>
<li class="toctree-l3"><a class="reference external" href="library/statvfs.html">11.4. <tt class="docutils literal"><span class="pre">statvfs</span></tt> &#8212; Constants used with <tt class="docutils literal"><span class="pre">os.statvfs()</span></tt></a></li>
<li class="toctree-l3"><a class="reference external" href="library/filecmp.html">11.5. <tt class="docutils literal"><span class="pre">filecmp</span></tt> &#8212; File and Directory Comparisons</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/filecmp.html#the-dircmp-class">11.5.1. The <tt class="docutils literal"><span class="pre">dircmp</span></tt> class</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/tempfile.html">11.6. <tt class="docutils literal"><span class="pre">tempfile</span></tt> &#8212; Generate temporary files and directories</a></li>
<li class="toctree-l3"><a class="reference external" href="library/glob.html">11.7. <tt class="docutils literal"><span class="pre">glob</span></tt> &#8212; Unix style pathname pattern expansion</a></li>
<li class="toctree-l3"><a class="reference external" href="library/fnmatch.html">11.8. <tt class="docutils literal"><span class="pre">fnmatch</span></tt> &#8212; Unix filename pattern matching</a></li>
<li class="toctree-l3"><a class="reference external" href="library/linecache.html">11.9. <tt class="docutils literal"><span class="pre">linecache</span></tt> &#8212; Random access to text lines</a></li>
<li class="toctree-l3"><a class="reference external" href="library/shutil.html">11.10. <tt class="docutils literal"><span class="pre">shutil</span></tt> &#8212; High-level file operations</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/shutil.html#example">11.10.1. Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/dircache.html">11.11. <tt class="docutils literal"><span class="pre">dircache</span></tt> &#8212; Cached directory listings</a></li>
<li class="toctree-l3"><a class="reference external" href="library/macpath.html">11.12. <tt class="docutils literal"><span class="pre">macpath</span></tt> &#8212; Mac OS 9 path manipulation functions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/persistence.html">12. Data Persistence</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/pickle.html">12.1. <tt class="docutils literal"><span class="pre">pickle</span></tt> &#8212; Python object serialization</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/pickle.html#relationship-to-other-python-modules">12.1.1. Relationship to other Python modules</a></li>
<li class="toctree-l4"><a class="reference external" href="library/pickle.html#data-stream-format">12.1.2. Data stream format</a></li>
<li class="toctree-l4"><a class="reference external" href="library/pickle.html#usage">12.1.3. Usage</a></li>
<li class="toctree-l4"><a class="reference external" href="library/pickle.html#what-can-be-pickled-and-unpickled">12.1.4. What can be pickled and unpickled?</a></li>
<li class="toctree-l4"><a class="reference external" href="library/pickle.html#the-pickle-protocol">12.1.5. The pickle protocol</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/pickle.html#pickling-and-unpickling-normal-class-instances">12.1.5.1. Pickling and unpickling normal class instances</a></li>
<li class="toctree-l5"><a class="reference external" href="library/pickle.html#pickling-and-unpickling-extension-types">12.1.5.2. Pickling and unpickling extension types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/pickle.html#pickling-and-unpickling-external-objects">12.1.5.3. Pickling and unpickling external objects</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/pickle.html#subclassing-unpicklers">12.1.6. Subclassing Unpicklers</a></li>
<li class="toctree-l4"><a class="reference external" href="library/pickle.html#example">12.1.7. Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/pickle.html#module-cPickle">12.2. <tt class="docutils literal"><span class="pre">cPickle</span></tt> &#8212; A faster <tt class="docutils literal"><span class="pre">pickle</span></tt></a></li>
<li class="toctree-l3"><a class="reference external" href="library/copy_reg.html">12.3. <tt class="docutils literal"><span class="pre">copy_reg</span></tt> &#8212; Register <tt class="docutils literal"><span class="pre">pickle</span></tt> support functions</a></li>
<li class="toctree-l3"><a class="reference external" href="library/shelve.html">12.4. <tt class="docutils literal"><span class="pre">shelve</span></tt> &#8212; Python object persistence</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/shelve.html#restrictions">12.4.1. Restrictions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/shelve.html#example">12.4.2. Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/marshal.html">12.5. <tt class="docutils literal"><span class="pre">marshal</span></tt> &#8212; Internal Python object serialization</a></li>
<li class="toctree-l3"><a class="reference external" href="library/anydbm.html">12.6. <tt class="docutils literal"><span class="pre">anydbm</span></tt> &#8212; Generic access to DBM-style databases</a></li>
<li class="toctree-l3"><a class="reference external" href="library/whichdb.html">12.7. <tt class="docutils literal"><span class="pre">whichdb</span></tt> &#8212; Guess which DBM module created a database</a></li>
<li class="toctree-l3"><a class="reference external" href="library/dbm.html">12.8. <tt class="docutils literal"><span class="pre">dbm</span></tt> &#8212; Simple &#8220;database&#8221; interface</a></li>
<li class="toctree-l3"><a class="reference external" href="library/gdbm.html">12.9. <tt class="docutils literal"><span class="pre">gdbm</span></tt> &#8212; GNU&#8217;s reinterpretation of dbm</a></li>
<li class="toctree-l3"><a class="reference external" href="library/dbhash.html">12.10. <tt class="docutils literal"><span class="pre">dbhash</span></tt> &#8212; DBM-style interface to the BSD database library</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/dbhash.html#database-objects">12.10.1. Database Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/bsddb.html">12.11. <tt class="docutils literal"><span class="pre">bsddb</span></tt> &#8212; Interface to Berkeley DB library</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/bsddb.html#hash-btree-and-record-objects">12.11.1. Hash, BTree and Record Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/dumbdbm.html">12.12. <tt class="docutils literal"><span class="pre">dumbdbm</span></tt> &#8212; Portable DBM implementation</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/dumbdbm.html#dumbdbm-objects">12.12.1. Dumbdbm Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/sqlite3.html">12.13. <tt class="docutils literal"><span class="pre">sqlite3</span></tt> &#8212; DB-API 2.0 interface for SQLite databases</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/sqlite3.html#module-functions-and-constants">12.13.1. Module functions and constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/sqlite3.html#connection-objects">12.13.2. Connection Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/sqlite3.html#cursor-objects">12.13.3. Cursor Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/sqlite3.html#row-objects">12.13.4. Row Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/sqlite3.html#sqlite-and-python-types">12.13.5. SQLite and Python types</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/sqlite3.html#introduction">12.13.5.1. Introduction</a></li>
<li class="toctree-l5"><a class="reference external" href="library/sqlite3.html#using-adapters-to-store-additional-python-types-in-sqlite-databases">12.13.5.2. Using adapters to store additional Python types in SQLite databases</a><ul>
<li class="toctree-l6"><a class="reference external" href="library/sqlite3.html#letting-your-object-adapt-itself">12.13.5.2.1. Letting your object adapt itself</a></li>
<li class="toctree-l6"><a class="reference external" href="library/sqlite3.html#registering-an-adapter-callable">12.13.5.2.2. Registering an adapter callable</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference external" href="library/sqlite3.html#converting-sqlite-values-to-custom-python-types">12.13.5.3. Converting SQLite values to custom Python types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/sqlite3.html#default-adapters-and-converters">12.13.5.4. Default adapters and converters</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/sqlite3.html#controlling-transactions">12.13.6. Controlling Transactions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/sqlite3.html#using-pysqlite-efficiently">12.13.7. Using pysqlite efficiently</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/sqlite3.html#using-shortcut-methods">12.13.7.1. Using shortcut methods</a></li>
<li class="toctree-l5"><a class="reference external" href="library/sqlite3.html#accessing-columns-by-name-instead-of-by-index">12.13.7.2. Accessing columns by name instead of by index</a></li>
<li class="toctree-l5"><a class="reference external" href="library/sqlite3.html#using-the-connection-as-a-context-manager">12.13.7.3. Using the connection as a context manager</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/archiving.html">13. Data Compression and Archiving</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/zlib.html">13.1. <tt class="docutils literal"><span class="pre">zlib</span></tt> &#8212; Compression compatible with <strong>gzip</strong></a></li>
<li class="toctree-l3"><a class="reference external" href="library/gzip.html">13.2. <tt class="docutils literal"><span class="pre">gzip</span></tt> &#8212; Support for <strong>gzip</strong> files</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/gzip.html#examples-of-usage">13.2.1. Examples of usage</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/bz2.html">13.3. <tt class="docutils literal"><span class="pre">bz2</span></tt> &#8212; Compression compatible with <strong>bzip2</strong></a><ul>
<li class="toctree-l4"><a class="reference external" href="library/bz2.html#de-compression-of-files">13.3.1. (De)compression of files</a></li>
<li class="toctree-l4"><a class="reference external" href="library/bz2.html#sequential-de-compression">13.3.2. Sequential (de)compression</a></li>
<li class="toctree-l4"><a class="reference external" href="library/bz2.html#one-shot-de-compression">13.3.3. One-shot (de)compression</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/zipfile.html">13.4. <tt class="docutils literal"><span class="pre">zipfile</span></tt> &#8212; Work with ZIP archives</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/zipfile.html#zipfile-objects">13.4.1. ZipFile Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/zipfile.html#pyzipfile-objects">13.4.2. PyZipFile Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/zipfile.html#zipinfo-objects">13.4.3. ZipInfo Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/tarfile.html">13.5. <tt class="docutils literal"><span class="pre">tarfile</span></tt> &#8212; Read and write tar archive files</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/tarfile.html#tarfile-objects">13.5.1. TarFile Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/tarfile.html#tarinfo-objects">13.5.2. TarInfo Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/tarfile.html#examples">13.5.3. Examples</a></li>
<li class="toctree-l4"><a class="reference external" href="library/tarfile.html#supported-tar-formats">13.5.4. Supported tar formats</a></li>
<li class="toctree-l4"><a class="reference external" href="library/tarfile.html#unicode-issues">13.5.5. Unicode issues</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/fileformats.html">14. File Formats</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/csv.html">14.1. <tt class="docutils literal"><span class="pre">csv</span></tt> &#8212; CSV File Reading and Writing</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/csv.html#module-contents">14.1.1. Module Contents</a></li>
<li class="toctree-l4"><a class="reference external" href="library/csv.html#dialects-and-formatting-parameters">14.1.2. Dialects and Formatting Parameters</a></li>
<li class="toctree-l4"><a class="reference external" href="library/csv.html#reader-objects">14.1.3. Reader Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/csv.html#writer-objects">14.1.4. Writer Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/csv.html#examples">14.1.5. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/configparser.html">14.2. <tt class="docutils literal"><span class="pre">ConfigParser</span></tt> &#8212; Configuration file parser</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/configparser.html#rawconfigparser-objects">14.2.1. RawConfigParser Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/configparser.html#configparser-objects">14.2.2. ConfigParser Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/configparser.html#safeconfigparser-objects">14.2.3. SafeConfigParser Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/configparser.html#examples">14.2.4. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/robotparser.html">14.3. <tt class="docutils literal"><span class="pre">robotparser</span></tt> &#8212;  Parser for robots.txt</a></li>
<li class="toctree-l3"><a class="reference external" href="library/netrc.html">14.4. <tt class="docutils literal"><span class="pre">netrc</span></tt> &#8212; netrc file processing</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/netrc.html#netrc-objects">14.4.1. netrc Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/xdrlib.html">14.5. <tt class="docutils literal"><span class="pre">xdrlib</span></tt> &#8212; Encode and decode XDR data</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/xdrlib.html#packer-objects">14.5.1. Packer Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xdrlib.html#unpacker-objects">14.5.2. Unpacker Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xdrlib.html#exceptions">14.5.3. Exceptions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/plistlib.html">14.6. <tt class="docutils literal"><span class="pre">plistlib</span></tt> &#8212; Generate and parse Mac OS X <tt class="docutils literal"><span class="pre">.plist</span></tt> files</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/plistlib.html#examples">14.6.1. Examples</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/crypto.html">15. Cryptographic Services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/hashlib.html">15.1. <tt class="docutils literal"><span class="pre">hashlib</span></tt> &#8212; Secure hashes and message digests</a></li>
<li class="toctree-l3"><a class="reference external" href="library/hmac.html">15.2. <tt class="docutils literal"><span class="pre">hmac</span></tt> &#8212; Keyed-Hashing for Message Authentication</a></li>
<li class="toctree-l3"><a class="reference external" href="library/md5.html">15.3. <tt class="docutils literal"><span class="pre">md5</span></tt> &#8212; MD5 message digest algorithm</a></li>
<li class="toctree-l3"><a class="reference external" href="library/sha.html">15.4. <tt class="docutils literal"><span class="pre">sha</span></tt> &#8212; SHA-1 message digest algorithm</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/allos.html">16. Generic Operating System Services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/os.html">16.1. <tt class="docutils literal"><span class="pre">os</span></tt> &#8212; Miscellaneous operating system interfaces</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/os.html#process-parameters">16.1.1. Process Parameters</a></li>
<li class="toctree-l4"><a class="reference external" href="library/os.html#file-object-creation">16.1.2. File Object Creation</a></li>
<li class="toctree-l4"><a class="reference external" href="library/os.html#file-descriptor-operations">16.1.3. File Descriptor Operations</a></li>
<li class="toctree-l4"><a class="reference external" href="library/os.html#files-and-directories">16.1.4. Files and Directories</a></li>
<li class="toctree-l4"><a class="reference external" href="library/os.html#process-management">16.1.5. Process Management</a></li>
<li class="toctree-l4"><a class="reference external" href="library/os.html#miscellaneous-system-information">16.1.6. Miscellaneous System Information</a></li>
<li class="toctree-l4"><a class="reference external" href="library/os.html#miscellaneous-functions">16.1.7. Miscellaneous Functions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/io.html">16.2. <tt class="docutils literal"><span class="pre">io</span></tt> &#8212; Core tools for working with streams</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/io.html#module-interface">16.2.1. Module Interface</a></li>
<li class="toctree-l4"><a class="reference external" href="library/io.html#i-o-base-classes">16.2.2. I/O Base Classes</a></li>
<li class="toctree-l4"><a class="reference external" href="library/io.html#raw-file-i-o">16.2.3. Raw File I/O</a></li>
<li class="toctree-l4"><a class="reference external" href="library/io.html#buffered-streams">16.2.4. Buffered Streams</a></li>
<li class="toctree-l4"><a class="reference external" href="library/io.html#text-i-o">16.2.5. Text I/O</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/time.html">16.3. <tt class="docutils literal"><span class="pre">time</span></tt> &#8212; Time access and conversions</a></li>
<li class="toctree-l3"><a class="reference external" href="library/optparse.html">16.4. <tt class="docutils literal"><span class="pre">optparse</span></tt> &#8212; More powerful command line option parser</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/optparse.html#background">16.4.1. Background</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#terminology">16.4.1.1. Terminology</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#what-are-options-for">16.4.1.2. What are options for?</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#what-are-positional-arguments-for">16.4.1.3. What are positional arguments for?</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/optparse.html#tutorial">16.4.2. Tutorial</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#understanding-option-actions">16.4.2.1. Understanding option actions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#the-store-action">16.4.2.2. The store action</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#handling-boolean-flag-options">16.4.2.3. Handling boolean (flag) options</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#other-actions">16.4.2.4. Other actions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#default-values">16.4.2.5. Default values</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#generating-help">16.4.2.6. Generating help</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#printing-a-version-string">16.4.2.7. Printing a version string</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#how-optparse-handles-errors">16.4.2.8. How <tt class="docutils literal"><span class="pre">optparse</span></tt> handles errors</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#putting-it-all-together">16.4.2.9. Putting it all together</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/optparse.html#reference-guide">16.4.3. Reference Guide</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#creating-the-parser">16.4.3.1. Creating the parser</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#populating-the-parser">16.4.3.2. Populating the parser</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#defining-options">16.4.3.3. Defining options</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#standard-option-actions">16.4.3.4. Standard option actions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#option-attributes">16.4.3.5. Option attributes</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#standard-option-types">16.4.3.6. Standard option types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#parsing-arguments">16.4.3.7. Parsing arguments</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#querying-and-manipulating-your-option-parser">16.4.3.8. Querying and manipulating your option parser</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#conflicts-between-options">16.4.3.9. Conflicts between options</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#cleanup">16.4.3.10. Cleanup</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#other-methods">16.4.3.11. Other methods</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/optparse.html#option-callbacks">16.4.4. Option Callbacks</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#defining-a-callback-option">16.4.4.1. Defining a callback option</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#how-callbacks-are-called">16.4.4.2. How callbacks are called</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#raising-errors-in-a-callback">16.4.4.3. Raising errors in a callback</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#callback-example-1-trivial-callback">16.4.4.4. Callback example 1: trivial callback</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#callback-example-2-check-option-order">16.4.4.5. Callback example 2: check option order</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#callback-example-3-check-option-order-generalized">16.4.4.6. Callback example 3: check option order (generalized)</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#callback-example-4-check-arbitrary-condition">16.4.4.7. Callback example 4: check arbitrary condition</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#callback-example-5-fixed-arguments">16.4.4.8. Callback example 5: fixed arguments</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#callback-example-6-variable-arguments">16.4.4.9. Callback example 6: variable arguments</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/optparse.html#extending-optparse">16.4.5. Extending <tt class="docutils literal"><span class="pre">optparse</span></tt></a><ul>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#adding-new-types">16.4.5.1. Adding new types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/optparse.html#adding-new-actions">16.4.5.2. Adding new actions</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/getopt.html">16.5. <tt class="docutils literal"><span class="pre">getopt</span></tt> &#8212; Parser for command line options</a></li>
<li class="toctree-l3"><a class="reference external" href="library/logging.html">16.6. <tt class="docutils literal"><span class="pre">logging</span></tt> &#8212; Logging facility for Python</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#logging-tutorial">16.6.1. Logging tutorial</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#simple-examples">16.6.1.1. Simple examples</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#loggers">16.6.1.2. Loggers</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#handlers">16.6.1.3. Handlers</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#formatters">16.6.1.4. Formatters</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#configuring-logging">16.6.1.5. Configuring Logging</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#configuring-logging-for-a-library">16.6.1.6. Configuring Logging for a Library</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#logging-levels">16.6.2. Logging Levels</a></li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#logger-objects">16.6.3. Logger Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#basic-example">16.6.4. Basic example</a></li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#logging-to-multiple-destinations">16.6.5. Logging to multiple destinations</a></li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#adding-contextual-information-to-your-logging-output">16.6.6. Adding contextual information to your logging output</a></li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#sending-and-receiving-logging-events-across-a-network">16.6.7. Sending and receiving logging events across a network</a></li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#handler-objects">16.6.8. Handler Objects</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#module-logging.handlers">16.6.8.1. StreamHandler</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#filehandler">16.6.8.2. FileHandler</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#watchedfilehandler">16.6.8.3. WatchedFileHandler</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#rotatingfilehandler">16.6.8.4. RotatingFileHandler</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#timedrotatingfilehandler">16.6.8.5. TimedRotatingFileHandler</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#sockethandler">16.6.8.6. SocketHandler</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#datagramhandler">16.6.8.7. DatagramHandler</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#sysloghandler">16.6.8.8. SysLogHandler</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#nteventloghandler">16.6.8.9. NTEventLogHandler</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#smtphandler">16.6.8.10. SMTPHandler</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#memoryhandler">16.6.8.11. MemoryHandler</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#httphandler">16.6.8.12. HTTPHandler</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#formatter-objects">16.6.9. Formatter Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#filter-objects">16.6.10. Filter Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#logrecord-objects">16.6.11. LogRecord Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#loggeradapter-objects">16.6.12. LoggerAdapter Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#thread-safety">16.6.13. Thread Safety</a></li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#configuration">16.6.14. Configuration</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#configuration-functions">16.6.14.1. Configuration functions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#configuration-file-format">16.6.14.2. Configuration file format</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#configuration-server-example">16.6.14.3. Configuration server example</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/logging.html#more-examples">16.6.15. More examples</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#multiple-handlers-and-formatters">16.6.15.1. Multiple handlers and formatters</a></li>
<li class="toctree-l5"><a class="reference external" href="library/logging.html#using-logging-in-multiple-modules">16.6.15.2. Using logging in multiple modules</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/getpass.html">16.7. <tt class="docutils literal"><span class="pre">getpass</span></tt> &#8212; Portable password input</a></li>
<li class="toctree-l3"><a class="reference external" href="library/curses.html">16.8. <tt class="docutils literal"><span class="pre">curses</span></tt> &#8212; Terminal handling for character-cell displays</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/curses.html#functions">16.8.1. Functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/curses.html#window-objects">16.8.2. Window Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/curses.html#constants">16.8.3. Constants</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/curses.html#module-curses.textpad">16.9. <tt class="docutils literal"><span class="pre">curses.textpad</span></tt> &#8212; Text input widget for curses programs</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/curses.html#textbox-objects">16.9.1. Textbox objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/curses.html#module-curses.wrapper">16.10. <tt class="docutils literal"><span class="pre">curses.wrapper</span></tt> &#8212; Terminal handler for curses programs</a></li>
<li class="toctree-l3"><a class="reference external" href="library/curses.ascii.html">16.11. <tt class="docutils literal"><span class="pre">curses.ascii</span></tt> &#8212; Utilities for ASCII characters</a></li>
<li class="toctree-l3"><a class="reference external" href="library/curses.panel.html">16.12. <tt class="docutils literal"><span class="pre">curses.panel</span></tt> &#8212; A panel stack extension for curses.</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/curses.panel.html#functions">16.12.1. Functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/curses.panel.html#panel-objects">16.12.2. Panel Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/platform.html">16.13. <tt class="docutils literal"><span class="pre">platform</span></tt> &#8212;  Access to underlying platform&#8217;s identifying data.</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/platform.html#cross-platform">16.13.1. Cross Platform</a></li>
<li class="toctree-l4"><a class="reference external" href="library/platform.html#java-platform">16.13.2. Java Platform</a></li>
<li class="toctree-l4"><a class="reference external" href="library/platform.html#windows-platform">16.13.3. Windows Platform</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/platform.html#win95-98-specific">16.13.3.1. Win95/98 specific</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/platform.html#mac-os-platform">16.13.4. Mac OS Platform</a></li>
<li class="toctree-l4"><a class="reference external" href="library/platform.html#unix-platforms">16.13.5. Unix Platforms</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/errno.html">16.14. <tt class="docutils literal"><span class="pre">errno</span></tt> &#8212; Standard errno system symbols</a></li>
<li class="toctree-l3"><a class="reference external" href="library/ctypes.html">16.15. <tt class="docutils literal"><span class="pre">ctypes</span></tt> &#8212; A foreign function library for Python.</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/ctypes.html#ctypes-tutorial">16.15.1. ctypes tutorial</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#loading-dynamic-link-libraries">16.15.1.1. Loading dynamic link libraries</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#accessing-functions-from-loaded-dlls">16.15.1.2. Accessing functions from loaded dlls</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#calling-functions">16.15.1.3. Calling functions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#fundamental-data-types">16.15.1.4. Fundamental data types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#calling-functions-continued">16.15.1.5. Calling functions, continued</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#calling-functions-with-your-own-custom-data-types">16.15.1.6. Calling functions with your own custom data types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#specifying-the-required-argument-types-function-prototypes">16.15.1.7. Specifying the required argument types (function prototypes)</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#return-types">16.15.1.8. Return types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#passing-pointers-or-passing-parameters-by-reference">16.15.1.9. Passing pointers (or: passing parameters by reference)</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#structures-and-unions">16.15.1.10. Structures and unions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#structure-union-alignment-and-byte-order">16.15.1.11. Structure/union alignment and byte order</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#bit-fields-in-structures-and-unions">16.15.1.12. Bit fields in structures and unions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#arrays">16.15.1.13. Arrays</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#pointers">16.15.1.14. Pointers</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#type-conversions">16.15.1.15. Type conversions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#incomplete-types">16.15.1.16. Incomplete Types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#callback-functions">16.15.1.17. Callback functions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#accessing-values-exported-from-dlls">16.15.1.18. Accessing values exported from dlls</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#surprises">16.15.1.19. Surprises</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#variable-sized-data-types">16.15.1.20. Variable-sized data types</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/ctypes.html#ctypes-reference">16.15.2. ctypes reference</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#finding-shared-libraries">16.15.2.1. Finding shared libraries</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#loading-shared-libraries">16.15.2.2. Loading shared libraries</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#foreign-functions">16.15.2.3. Foreign functions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#function-prototypes">16.15.2.4. Function prototypes</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#utility-functions">16.15.2.5. Utility functions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#data-types">16.15.2.6. Data types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#ctypes-fundamental-data-types-2">16.15.2.7. Fundamental data types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#structured-data-types">16.15.2.8. Structured data types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ctypes.html#arrays-and-pointers">16.15.2.9. Arrays and pointers</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/someos.html">17. Optional Operating System Services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/select.html">17.1. <tt class="docutils literal"><span class="pre">select</span></tt> &#8212; Waiting for I/O completion</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/select.html#edge-and-level-trigger-polling-epoll-objects">17.1.1. Edge and Level Trigger Polling (epoll) Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/select.html#polling-objects">17.1.2. Polling Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/select.html#kqueue-objects">17.1.3. Kqueue Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/select.html#kevent-objects">17.1.4. Kevent Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/threading.html">17.2. <tt class="docutils literal"><span class="pre">threading</span></tt> &#8212; Higher-level threading interface</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/threading.html#thread-objects">17.2.1. Thread Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/threading.html#lock-objects">17.2.2. Lock Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/threading.html#rlock-objects">17.2.3. RLock Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/threading.html#condition-objects">17.2.4. Condition Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/threading.html#semaphore-objects">17.2.5. Semaphore Objects</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/threading.html#semaphore-example">17.2.5.1. <tt class="docutils literal"><span class="pre">Semaphore</span></tt> Example</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/threading.html#event-objects">17.2.6. Event Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/threading.html#timer-objects">17.2.7. Timer Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/threading.html#using-locks-conditions-and-semaphores-in-the-with-statement">17.2.8. Using locks, conditions, and semaphores in the <tt class="docutils literal"><span class="pre">with</span></tt> statement</a></li>
<li class="toctree-l4"><a class="reference external" href="library/threading.html#importing-in-threaded-code">17.2.9. Importing in threaded code</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/thread.html">17.3. <tt class="docutils literal"><span class="pre">thread</span></tt> &#8212; Multiple threads of control</a></li>
<li class="toctree-l3"><a class="reference external" href="library/dummy_threading.html">17.4. <tt class="docutils literal"><span class="pre">dummy_threading</span></tt> &#8212; Drop-in replacement for the <tt class="docutils literal"><span class="pre">threading</span></tt> module</a></li>
<li class="toctree-l3"><a class="reference external" href="library/dummy_thread.html">17.5. <tt class="docutils literal"><span class="pre">dummy_thread</span></tt> &#8212; Drop-in replacement for the <tt class="docutils literal"><span class="pre">thread</span></tt> module</a></li>
<li class="toctree-l3"><a class="reference external" href="library/multiprocessing.html">17.6. <tt class="docutils literal"><span class="pre">multiprocessing</span></tt> &#8212; Process-based &#8220;threading&#8221; interface</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/multiprocessing.html#introduction">17.6.1. Introduction</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#the-process-class">17.6.1.1. The <tt class="docutils literal"><span class="pre">Process</span></tt> class</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#exchanging-objects-between-processes">17.6.1.2. Exchanging objects between processes</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#synchronization-between-processes">17.6.1.3. Synchronization between processes</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#sharing-state-between-processes">17.6.1.4. Sharing state between processes</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#using-a-pool-of-workers">17.6.1.5. Using a pool of workers</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/multiprocessing.html#reference">17.6.2. Reference</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#process-and-exceptions">17.6.2.1. <tt class="docutils literal"><span class="pre">Process</span></tt> and exceptions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#pipes-and-queues">17.6.2.2. Pipes and Queues</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#miscellaneous">17.6.2.3. Miscellaneous</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#connection-objects">17.6.2.4. Connection Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#synchronization-primitives">17.6.2.5. Synchronization primitives</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#shared-ctypes-objects">17.6.2.6. Shared <tt class="docutils literal"><span class="pre">ctypes</span></tt> Objects</a><ul>
<li class="toctree-l6"><a class="reference external" href="library/multiprocessing.html#module-multiprocessing.sharedctypes">17.6.2.6.1. The <tt class="docutils literal"><span class="pre">multiprocessing.sharedctypes</span></tt> module</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#module-multiprocessing.managers">17.6.2.7. Managers</a><ul>
<li class="toctree-l6"><a class="reference external" href="library/multiprocessing.html#namespace-objects">17.6.2.7.1. Namespace objects</a></li>
<li class="toctree-l6"><a class="reference external" href="library/multiprocessing.html#customized-managers">17.6.2.7.2. Customized managers</a></li>
<li class="toctree-l6"><a class="reference external" href="library/multiprocessing.html#using-a-remote-manager">17.6.2.7.3. Using a remote manager</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#proxy-objects">17.6.2.8. Proxy Objects</a><ul>
<li class="toctree-l6"><a class="reference external" href="library/multiprocessing.html#cleanup">17.6.2.8.1. Cleanup</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#module-multiprocessing.pool">17.6.2.9. Process Pools</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#module-multiprocessing.connection">17.6.2.10. Listeners and Clients</a><ul>
<li class="toctree-l6"><a class="reference external" href="library/multiprocessing.html#address-formats">17.6.2.10.1. Address Formats</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#authentication-keys">17.6.2.11. Authentication keys</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#logging">17.6.2.12. Logging</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#module-multiprocessing.dummy">17.6.2.13. The <tt class="docutils literal"><span class="pre">multiprocessing.dummy</span></tt> module</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/multiprocessing.html#programming-guidelines">17.6.3. Programming guidelines</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#all-platforms">17.6.3.1. All platforms</a></li>
<li class="toctree-l5"><a class="reference external" href="library/multiprocessing.html#windows">17.6.3.2. Windows</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/multiprocessing.html#examples">17.6.4. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/mmap.html">17.7. <tt class="docutils literal"><span class="pre">mmap</span></tt> &#8212; Memory-mapped file support</a></li>
<li class="toctree-l3"><a class="reference external" href="library/readline.html">17.8. <tt class="docutils literal"><span class="pre">readline</span></tt> &#8212; GNU readline interface</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/readline.html#example">17.8.1. Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/rlcompleter.html">17.9. <tt class="docutils literal"><span class="pre">rlcompleter</span></tt> &#8212; Completion function for GNU readline</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/rlcompleter.html#completer-objects">17.9.1. Completer Objects</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/ipc.html">18. Interprocess Communication and Networking</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/subprocess.html">18.1. <tt class="docutils literal"><span class="pre">subprocess</span></tt> &#8212; Subprocess management</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/subprocess.html#using-the-subprocess-module">18.1.1. Using the subprocess Module</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/subprocess.html#convenience-functions">18.1.1.1. Convenience Functions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/subprocess.html#exceptions">18.1.1.2. Exceptions</a></li>
<li class="toctree-l5"><a class="reference external" href="library/subprocess.html#security">18.1.1.3. Security</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/subprocess.html#popen-objects">18.1.2. Popen Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/subprocess.html#replacing-older-functions-with-the-subprocess-module">18.1.3. Replacing Older Functions with the subprocess Module</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/subprocess.html#replacing-bin-sh-shell-backquote">18.1.3.1. Replacing /bin/sh shell backquote</a></li>
<li class="toctree-l5"><a class="reference external" href="library/subprocess.html#replacing-shell-pipeline">18.1.3.2. Replacing shell pipeline</a></li>
<li class="toctree-l5"><a class="reference external" href="library/subprocess.html#replacing-os-system">18.1.3.3. Replacing os.system()</a></li>
<li class="toctree-l5"><a class="reference external" href="library/subprocess.html#replacing-the-os-spawn-family">18.1.3.4. Replacing the os.spawn family</a></li>
<li class="toctree-l5"><a class="reference external" href="library/subprocess.html#replacing-os-popen-os-popen2-os-popen3">18.1.3.5. Replacing os.popen, os.popen2, os.popen3</a></li>
<li class="toctree-l5"><a class="reference external" href="library/subprocess.html#replacing-functions-from-the-popen2-module">18.1.3.6. Replacing functions from the popen2 module</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/socket.html">18.2. <tt class="docutils literal"><span class="pre">socket</span></tt> &#8212; Low-level networking interface</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/socket.html#socket-objects">18.2.1. Socket Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/socket.html#example">18.2.2. Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/ssl.html">18.3. <tt class="docutils literal"><span class="pre">ssl</span></tt> &#8212; SSL wrapper for socket objects</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/ssl.html#functions-constants-and-exceptions">18.3.1. Functions, Constants, and Exceptions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/ssl.html#sslsocket-objects">18.3.2. SSLSocket Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/ssl.html#certificates">18.3.3. Certificates</a></li>
<li class="toctree-l4"><a class="reference external" href="library/ssl.html#examples">18.3.4. Examples</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/ssl.html#testing-for-ssl-support">18.3.4.1. Testing for SSL support</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ssl.html#client-side-operation">18.3.4.2. Client-side operation</a></li>
<li class="toctree-l5"><a class="reference external" href="library/ssl.html#server-side-operation">18.3.4.3. Server-side operation</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/signal.html">18.4. <tt class="docutils literal"><span class="pre">signal</span></tt> &#8212; Set handlers for asynchronous events</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/signal.html#example">18.4.1. Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/popen2.html">18.5. <tt class="docutils literal"><span class="pre">popen2</span></tt> &#8212; Subprocesses with accessible I/O streams</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/popen2.html#popen3-and-popen4-objects">18.5.1. Popen3 and Popen4 Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/popen2.html#flow-control-issues">18.5.2. Flow Control Issues</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/asyncore.html">18.6. <tt class="docutils literal"><span class="pre">asyncore</span></tt> &#8212; Asynchronous socket handler</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/asyncore.html#asyncore-example-basic-http-client">18.6.1. asyncore Example basic HTTP client</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/asynchat.html">18.7. <tt class="docutils literal"><span class="pre">asynchat</span></tt> &#8212; Asynchronous socket command/response handler</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/asynchat.html#asynchat-auxiliary-classes-and-functions">18.7.1. asynchat - Auxiliary Classes and Functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/asynchat.html#asynchat-example">18.7.2. asynchat Example</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/netdata.html">19. Internet Data Handling</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/email.html">19.1. <tt class="docutils literal"><span class="pre">email</span></tt> &#8212; An email and MIME handling package</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/email.message.html">19.1.1. <tt class="docutils literal"><span class="pre">email</span></tt>: Representing an email message</a></li>
<li class="toctree-l4"><a class="reference external" href="library/email.parser.html">19.1.2. <tt class="docutils literal"><span class="pre">email</span></tt>: Parsing email messages</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/email.parser.html#feedparser-api">19.1.2.1. FeedParser API</a></li>
<li class="toctree-l5"><a class="reference external" href="library/email.parser.html#parser-class-api">19.1.2.2. Parser class API</a></li>
<li class="toctree-l5"><a class="reference external" href="library/email.parser.html#additional-notes">19.1.2.3. Additional notes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/email.generator.html">19.1.3. <tt class="docutils literal"><span class="pre">email</span></tt>: Generating MIME documents</a></li>
<li class="toctree-l4"><a class="reference external" href="library/email.mime.html">19.1.4. <tt class="docutils literal"><span class="pre">email</span></tt>: Creating email and MIME objects from scratch</a></li>
<li class="toctree-l4"><a class="reference external" href="library/email.header.html">19.1.5. <tt class="docutils literal"><span class="pre">email</span></tt>: Internationalized headers</a></li>
<li class="toctree-l4"><a class="reference external" href="library/email.charset.html">19.1.6. <tt class="docutils literal"><span class="pre">email</span></tt>: Representing character sets</a></li>
<li class="toctree-l4"><a class="reference external" href="library/email.encoders.html">19.1.7. <tt class="docutils literal"><span class="pre">email</span></tt>: Encoders</a></li>
<li class="toctree-l4"><a class="reference external" href="library/email.errors.html">19.1.8. <tt class="docutils literal"><span class="pre">email</span></tt>: Exception and Defect classes</a></li>
<li class="toctree-l4"><a class="reference external" href="library/email.util.html">19.1.9. <tt class="docutils literal"><span class="pre">email</span></tt>: Miscellaneous utilities</a></li>
<li class="toctree-l4"><a class="reference external" href="library/email.iterators.html">19.1.10. <tt class="docutils literal"><span class="pre">email</span></tt>: Iterators</a></li>
<li class="toctree-l4"><a class="reference external" href="library/email-examples.html">19.1.11. <tt class="docutils literal"><span class="pre">email</span></tt>: Examples</a></li>
<li class="toctree-l4"><a class="reference external" href="library/email.html#package-history">19.1.12. Package History</a></li>
<li class="toctree-l4"><a class="reference external" href="library/email.html#differences-from-mimelib">19.1.13. Differences from <tt class="docutils literal"><span class="pre">mimelib</span></tt></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/json.html">19.2. <tt class="docutils literal"><span class="pre">json</span></tt> &#8212; JSON encoder and decoder</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/json.html#basic-usage">19.2.1. Basic Usage</a></li>
<li class="toctree-l4"><a class="reference external" href="library/json.html#encoders-and-decoders">19.2.2. Encoders and decoders</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/mailcap.html">19.3. <tt class="docutils literal"><span class="pre">mailcap</span></tt> &#8212; Mailcap file handling</a></li>
<li class="toctree-l3"><a class="reference external" href="library/mailbox.html">19.4. <tt class="docutils literal"><span class="pre">mailbox</span></tt> &#8212; Manipulate mailboxes in various formats</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/mailbox.html#mailbox-objects">19.4.1. <tt class="docutils literal"><span class="pre">Mailbox</span></tt> objects</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/mailbox.html#maildir">19.4.1.1. <tt class="docutils literal"><span class="pre">Maildir</span></tt></a></li>
<li class="toctree-l5"><a class="reference external" href="library/mailbox.html#mbox">19.4.1.2. <tt class="docutils literal"><span class="pre">mbox</span></tt></a></li>
<li class="toctree-l5"><a class="reference external" href="library/mailbox.html#mh">19.4.1.3. <tt class="docutils literal"><span class="pre">MH</span></tt></a></li>
<li class="toctree-l5"><a class="reference external" href="library/mailbox.html#babyl">19.4.1.4. <tt class="docutils literal"><span class="pre">Babyl</span></tt></a></li>
<li class="toctree-l5"><a class="reference external" href="library/mailbox.html#mmdf">19.4.1.5. <tt class="docutils literal"><span class="pre">MMDF</span></tt></a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/mailbox.html#message-objects">19.4.2. <tt class="docutils literal"><span class="pre">Message</span></tt> objects</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/mailbox.html#maildirmessage">19.4.2.1. <tt class="docutils literal"><span class="pre">MaildirMessage</span></tt></a></li>
<li class="toctree-l5"><a class="reference external" href="library/mailbox.html#mboxmessage">19.4.2.2. <tt class="docutils literal"><span class="pre">mboxMessage</span></tt></a></li>
<li class="toctree-l5"><a class="reference external" href="library/mailbox.html#mhmessage">19.4.2.3. <tt class="docutils literal"><span class="pre">MHMessage</span></tt></a></li>
<li class="toctree-l5"><a class="reference external" href="library/mailbox.html#babylmessage">19.4.2.4. <tt class="docutils literal"><span class="pre">BabylMessage</span></tt></a></li>
<li class="toctree-l5"><a class="reference external" href="library/mailbox.html#mmdfmessage">19.4.2.5. <tt class="docutils literal"><span class="pre">MMDFMessage</span></tt></a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/mailbox.html#exceptions">19.4.3. Exceptions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/mailbox.html#deprecated-classes-and-methods">19.4.4. Deprecated classes and methods</a></li>
<li class="toctree-l4"><a class="reference external" href="library/mailbox.html#examples">19.4.5. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/mhlib.html">19.5. <tt class="docutils literal"><span class="pre">mhlib</span></tt> &#8212; Access to MH mailboxes</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/mhlib.html#mh-objects">19.5.1. MH Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/mhlib.html#folder-objects">19.5.2. Folder Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/mhlib.html#message-objects">19.5.3. Message Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/mimetools.html">19.6. <tt class="docutils literal"><span class="pre">mimetools</span></tt> &#8212; Tools for parsing MIME messages</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/mimetools.html#additional-methods-of-message-objects">19.6.1. Additional Methods of Message Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/mimetypes.html">19.7. <tt class="docutils literal"><span class="pre">mimetypes</span></tt> &#8212; Map filenames to MIME types</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/mimetypes.html#mimetypes-objects">19.7.1. MimeTypes Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/mimewriter.html">19.8. <tt class="docutils literal"><span class="pre">MimeWriter</span></tt> &#8212; Generic MIME file writer</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/mimewriter.html#mimewriter-objects">19.8.1. MimeWriter Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/mimify.html">19.9. <tt class="docutils literal"><span class="pre">mimify</span></tt> &#8212; MIME processing of mail messages</a></li>
<li class="toctree-l3"><a class="reference external" href="library/multifile.html">19.10. <tt class="docutils literal"><span class="pre">multifile</span></tt> &#8212; Support for files containing distinct parts</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/multifile.html#multifile-objects">19.10.1. MultiFile Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/multifile.html#multifile-example">19.10.2. <tt class="docutils literal"><span class="pre">MultiFile</span></tt> Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/rfc822.html">19.11. <tt class="docutils literal"><span class="pre">rfc822</span></tt> &#8212; Parse RFC 2822 mail headers</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/rfc822.html#message-objects">19.11.1. Message Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/rfc822.html#addresslist-objects">19.11.2. AddressList Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/base64.html">19.12. <tt class="docutils literal"><span class="pre">base64</span></tt> &#8212; RFC 3548: Base16, Base32, Base64 Data Encodings</a></li>
<li class="toctree-l3"><a class="reference external" href="library/binhex.html">19.13. <tt class="docutils literal"><span class="pre">binhex</span></tt> &#8212; Encode and decode binhex4 files</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/binhex.html#notes">19.13.1. Notes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/binascii.html">19.14. <tt class="docutils literal"><span class="pre">binascii</span></tt> &#8212; Convert between binary and ASCII</a></li>
<li class="toctree-l3"><a class="reference external" href="library/quopri.html">19.15. <tt class="docutils literal"><span class="pre">quopri</span></tt> &#8212; Encode and decode MIME quoted-printable data</a></li>
<li class="toctree-l3"><a class="reference external" href="library/uu.html">19.16. <tt class="docutils literal"><span class="pre">uu</span></tt> &#8212; Encode and decode uuencode files</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/markup.html">20. Structured Markup Processing Tools</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/htmlparser.html">20.1. <tt class="docutils literal"><span class="pre">HTMLParser</span></tt> &#8212; Simple HTML and XHTML parser</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/htmlparser.html#example-html-parser-application">20.1.1. Example HTML Parser Application</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/sgmllib.html">20.2. <tt class="docutils literal"><span class="pre">sgmllib</span></tt> &#8212; Simple SGML parser</a></li>
<li class="toctree-l3"><a class="reference external" href="library/htmllib.html">20.3. <tt class="docutils literal"><span class="pre">htmllib</span></tt> &#8212; A parser for HTML documents</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/htmllib.html#htmlparser-objects">20.3.1. HTMLParser Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/htmllib.html#module-htmlentitydefs">20.4. <tt class="docutils literal"><span class="pre">htmlentitydefs</span></tt> &#8212; Definitions of HTML general entities</a></li>
<li class="toctree-l3"><a class="reference external" href="library/pyexpat.html">20.5. <tt class="docutils literal"><span class="pre">xml.parsers.expat</span></tt> &#8212; Fast XML parsing using Expat</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/pyexpat.html#xmlparser-objects">20.5.1. XMLParser Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/pyexpat.html#expaterror-exceptions">20.5.2. ExpatError Exceptions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/pyexpat.html#example">20.5.3. Example</a></li>
<li class="toctree-l4"><a class="reference external" href="library/pyexpat.html#content-model-descriptions">20.5.4. Content Model Descriptions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/pyexpat.html#expat-error-constants">20.5.5. Expat error constants</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/xml.dom.html">20.6. <tt class="docutils literal"><span class="pre">xml.dom</span></tt> &#8212; The Document Object Model API</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/xml.dom.html#module-contents">20.6.1. Module Contents</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.dom.html#objects-in-the-dom">20.6.2. Objects in the DOM</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#domimplementation-objects">20.6.2.1. DOMImplementation Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#node-objects">20.6.2.2. Node Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#nodelist-objects">20.6.2.3. NodeList Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#documenttype-objects">20.6.2.4. DocumentType Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#document-objects">20.6.2.5. Document Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#element-objects">20.6.2.6. Element Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#attr-objects">20.6.2.7. Attr Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#namednodemap-objects">20.6.2.8. NamedNodeMap Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#comment-objects">20.6.2.9. Comment Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#text-and-cdatasection-objects">20.6.2.10. Text and CDATASection Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#processinginstruction-objects">20.6.2.11. ProcessingInstruction Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#exceptions">20.6.2.12. Exceptions</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/xml.dom.html#conformance">20.6.3. Conformance</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#type-mapping">20.6.3.1. Type Mapping</a></li>
<li class="toctree-l5"><a class="reference external" href="library/xml.dom.html#accessor-methods">20.6.3.2. Accessor Methods</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/xml.dom.minidom.html">20.7. <tt class="docutils literal"><span class="pre">xml.dom.minidom</span></tt> &#8212; Lightweight DOM implementation</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/xml.dom.minidom.html#dom-objects">20.7.1. DOM Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.dom.minidom.html#dom-example">20.7.2. DOM Example</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.dom.minidom.html#minidom-and-the-dom-standard">20.7.3. minidom and the DOM standard</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/xml.dom.pulldom.html">20.8. <tt class="docutils literal"><span class="pre">xml.dom.pulldom</span></tt> &#8212; Support for building partial DOM trees</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/xml.dom.pulldom.html#domeventstream-objects">20.8.1. DOMEventStream Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/xml.sax.html">20.9. <tt class="docutils literal"><span class="pre">xml.sax</span></tt> &#8212; Support for SAX2 parsers</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/xml.sax.html#saxexception-objects">20.9.1. SAXException Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/xml.sax.handler.html">20.10. <tt class="docutils literal"><span class="pre">xml.sax.handler</span></tt> &#8212; Base classes for SAX handlers</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/xml.sax.handler.html#contenthandler-objects">20.10.1. ContentHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.sax.handler.html#dtdhandler-objects">20.10.2. DTDHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.sax.handler.html#entityresolver-objects">20.10.3. EntityResolver Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.sax.handler.html#errorhandler-objects">20.10.4. ErrorHandler Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/xml.sax.utils.html">20.11. <tt class="docutils literal"><span class="pre">xml.sax.saxutils</span></tt> &#8212; SAX Utilities</a></li>
<li class="toctree-l3"><a class="reference external" href="library/xml.sax.reader.html">20.12. <tt class="docutils literal"><span class="pre">xml.sax.xmlreader</span></tt> &#8212; Interface for XML parsers</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/xml.sax.reader.html#xmlreader-objects">20.12.1. XMLReader Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.sax.reader.html#incrementalparser-objects">20.12.2. IncrementalParser Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.sax.reader.html#locator-objects">20.12.3. Locator Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.sax.reader.html#inputsource-objects">20.12.4. InputSource Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.sax.reader.html#the-attributes-interface">20.12.5. The <tt class="docutils literal"><span class="pre">Attributes</span></tt> Interface</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.sax.reader.html#the-attributesns-interface">20.12.6. The <tt class="docutils literal"><span class="pre">AttributesNS</span></tt> Interface</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/xml.etree.elementtree.html">20.13. <tt class="docutils literal"><span class="pre">xml.etree.ElementTree</span></tt> &#8212; The ElementTree XML API</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/xml.etree.elementtree.html#functions">20.13.1. Functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.etree.elementtree.html#the-element-interface">20.13.2. The Element Interface</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.etree.elementtree.html#elementtree-objects">20.13.3. ElementTree Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.etree.elementtree.html#qname-objects">20.13.4. QName Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.etree.elementtree.html#treebuilder-objects">20.13.5. TreeBuilder Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xml.etree.elementtree.html#xmltreebuilder-objects">20.13.6. XMLTreeBuilder Objects</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/internet.html">21. Internet Protocols and Support</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/webbrowser.html">21.1. <tt class="docutils literal"><span class="pre">webbrowser</span></tt> &#8212; Convenient Web-browser controller</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/webbrowser.html#browser-controller-objects">21.1.1. Browser Controller Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/cgi.html">21.2. <tt class="docutils literal"><span class="pre">cgi</span></tt> &#8212; Common Gateway Interface support.</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/cgi.html#introduction">21.2.1. Introduction</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cgi.html#using-the-cgi-module">21.2.2. Using the cgi module</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cgi.html#higher-level-interface">21.2.3. Higher Level Interface</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cgi.html#old-classes">21.2.4. Old classes</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cgi.html#functions">21.2.5. Functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cgi.html#caring-about-security">21.2.6. Caring about security</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cgi.html#installing-your-cgi-script-on-a-unix-system">21.2.7. Installing your CGI script on a Unix system</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cgi.html#testing-your-cgi-script">21.2.8. Testing your CGI script</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cgi.html#debugging-cgi-scripts">21.2.9. Debugging CGI scripts</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cgi.html#common-problems-and-solutions">21.2.10. Common problems and solutions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/cgitb.html">21.3. <tt class="docutils literal"><span class="pre">cgitb</span></tt> &#8212; Traceback manager for CGI scripts</a></li>
<li class="toctree-l3"><a class="reference external" href="library/wsgiref.html">21.4. <tt class="docutils literal"><span class="pre">wsgiref</span></tt> &#8212; WSGI Utilities and Reference Implementation</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/wsgiref.html#module-wsgiref.util">21.4.1. <tt class="docutils literal"><span class="pre">wsgiref.util</span></tt> &#8211; WSGI environment utilities</a></li>
<li class="toctree-l4"><a class="reference external" href="library/wsgiref.html#module-wsgiref.headers">21.4.2. <tt class="docutils literal"><span class="pre">wsgiref.headers</span></tt> &#8211; WSGI response header tools</a></li>
<li class="toctree-l4"><a class="reference external" href="library/wsgiref.html#module-wsgiref.simple_server">21.4.3. <tt class="docutils literal"><span class="pre">wsgiref.simple_server</span></tt> &#8211; a simple WSGI HTTP server</a></li>
<li class="toctree-l4"><a class="reference external" href="library/wsgiref.html#module-wsgiref.validate">21.4.4. <tt class="docutils literal"><span class="pre">wsgiref.validate</span></tt> &#8212; WSGI conformance checker</a></li>
<li class="toctree-l4"><a class="reference external" href="library/wsgiref.html#module-wsgiref.handlers">21.4.5. <tt class="docutils literal"><span class="pre">wsgiref.handlers</span></tt> &#8211; server/gateway base classes</a></li>
<li class="toctree-l4"><a class="reference external" href="library/wsgiref.html#examples">21.4.6. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/urllib.html">21.5. <tt class="docutils literal"><span class="pre">urllib</span></tt> &#8212; Open arbitrary resources by URL</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/urllib.html#high-level-interface">21.5.1. High-level interface</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib.html#utility-functions">21.5.2. Utility functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib.html#url-opener-objects">21.5.3. URL Opener objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib.html#urllib-restrictions">21.5.4. <tt class="docutils literal"><span class="pre">urllib</span></tt> Restrictions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib.html#examples">21.5.5. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/urllib2.html">21.6. <tt class="docutils literal"><span class="pre">urllib2</span></tt> &#8212; extensible library for opening URLs</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#request-objects">21.6.1. Request Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#openerdirector-objects">21.6.2. OpenerDirector Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#basehandler-objects">21.6.3. BaseHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#httpredirecthandler-objects">21.6.4. HTTPRedirectHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#httpcookieprocessor-objects">21.6.5. HTTPCookieProcessor Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#proxyhandler-objects">21.6.6. ProxyHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#httppasswordmgr-objects">21.6.7. HTTPPasswordMgr Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#abstractbasicauthhandler-objects">21.6.8. AbstractBasicAuthHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#httpbasicauthhandler-objects">21.6.9. HTTPBasicAuthHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#proxybasicauthhandler-objects">21.6.10. ProxyBasicAuthHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#abstractdigestauthhandler-objects">21.6.11. AbstractDigestAuthHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#httpdigestauthhandler-objects">21.6.12. HTTPDigestAuthHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#proxydigestauthhandler-objects">21.6.13. ProxyDigestAuthHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#httphandler-objects">21.6.14. HTTPHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#httpshandler-objects">21.6.15. HTTPSHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#filehandler-objects">21.6.16. FileHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#ftphandler-objects">21.6.17. FTPHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#cacheftphandler-objects">21.6.18. CacheFTPHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#unknownhandler-objects">21.6.19. UnknownHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#httperrorprocessor-objects">21.6.20. HTTPErrorProcessor Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/urllib2.html#examples">21.6.21. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/httplib.html">21.7. <tt class="docutils literal"><span class="pre">httplib</span></tt> &#8212; HTTP protocol client</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/httplib.html#httpconnection-objects">21.7.1. HTTPConnection Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/httplib.html#httpresponse-objects">21.7.2. HTTPResponse Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/httplib.html#examples">21.7.3. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/ftplib.html">21.8. <tt class="docutils literal"><span class="pre">ftplib</span></tt> &#8212; FTP protocol client</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/ftplib.html#ftp-objects">21.8.1. FTP Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/poplib.html">21.9. <tt class="docutils literal"><span class="pre">poplib</span></tt> &#8212; POP3 protocol client</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/poplib.html#pop3-objects">21.9.1. POP3 Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/poplib.html#pop3-example">21.9.2. POP3 Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/imaplib.html">21.10. <tt class="docutils literal"><span class="pre">imaplib</span></tt> &#8212; IMAP4 protocol client</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/imaplib.html#imap4-objects">21.10.1. IMAP4 Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/imaplib.html#imap4-example">21.10.2. IMAP4 Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/nntplib.html">21.11. <tt class="docutils literal"><span class="pre">nntplib</span></tt> &#8212; NNTP protocol client</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/nntplib.html#nntp-objects">21.11.1. NNTP Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/smtplib.html">21.12. <tt class="docutils literal"><span class="pre">smtplib</span></tt> &#8212; SMTP protocol client</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/smtplib.html#smtp-objects">21.12.1. SMTP Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/smtplib.html#smtp-example">21.12.2. SMTP Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/smtpd.html">21.13. <tt class="docutils literal"><span class="pre">smtpd</span></tt> &#8212; SMTP Server</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/smtpd.html#smtpserver-objects">21.13.1. SMTPServer Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/smtpd.html#debuggingserver-objects">21.13.2. DebuggingServer Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/smtpd.html#pureproxy-objects">21.13.3. PureProxy Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/smtpd.html#mailmanproxy-objects">21.13.4. MailmanProxy Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/telnetlib.html">21.14. <tt class="docutils literal"><span class="pre">telnetlib</span></tt> &#8212; Telnet client</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/telnetlib.html#telnet-objects">21.14.1. Telnet Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/telnetlib.html#telnet-example">21.14.2. Telnet Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/uuid.html">21.15. <tt class="docutils literal"><span class="pre">uuid</span></tt> &#8212; UUID objects according to RFC 4122</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/uuid.html#example">21.15.1. Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/urlparse.html">21.16. <tt class="docutils literal"><span class="pre">urlparse</span></tt> &#8212; Parse URLs into components</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/urlparse.html#results-of-urlparse-and-urlsplit">21.16.1. Results of <tt class="docutils literal"><span class="pre">urlparse()</span></tt> and <tt class="docutils literal"><span class="pre">urlsplit()</span></tt></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/socketserver.html">21.17. <tt class="docutils literal"><span class="pre">SocketServer</span></tt> &#8212; A framework for network servers</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/socketserver.html#server-creation-notes">21.17.1. Server Creation Notes</a></li>
<li class="toctree-l4"><a class="reference external" href="library/socketserver.html#server-objects">21.17.2. Server Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/socketserver.html#requesthandler-objects">21.17.3. RequestHandler Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/socketserver.html#examples">21.17.4. Examples</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/socketserver.html#socketserver-tcpserver-example">21.17.4.1. <tt class="docutils literal"><span class="pre">SocketServer.TCPServer</span></tt> Example</a></li>
<li class="toctree-l5"><a class="reference external" href="library/socketserver.html#socketserver-udpserver-example">21.17.4.2. <tt class="docutils literal"><span class="pre">SocketServer.UDPServer</span></tt> Example</a></li>
<li class="toctree-l5"><a class="reference external" href="library/socketserver.html#asynchronous-mixins">21.17.4.3. Asynchronous Mixins</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/basehttpserver.html">21.18. <tt class="docutils literal"><span class="pre">BaseHTTPServer</span></tt> &#8212; Basic HTTP server</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/basehttpserver.html#more-examples">21.18.1. More examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/simplehttpserver.html">21.19. <tt class="docutils literal"><span class="pre">SimpleHTTPServer</span></tt> &#8212; Simple HTTP request handler</a></li>
<li class="toctree-l3"><a class="reference external" href="library/cgihttpserver.html">21.20. <tt class="docutils literal"><span class="pre">CGIHTTPServer</span></tt> &#8212; CGI-capable HTTP request handler</a></li>
<li class="toctree-l3"><a class="reference external" href="library/cookielib.html">21.21. <tt class="docutils literal"><span class="pre">cookielib</span></tt> &#8212; Cookie handling for HTTP clients</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/cookielib.html#cookiejar-and-filecookiejar-objects">21.21.1. CookieJar and FileCookieJar Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cookielib.html#filecookiejar-subclasses-and-co-operation-with-web-browsers">21.21.2. FileCookieJar subclasses and co-operation with web browsers</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cookielib.html#cookiepolicy-objects">21.21.3. CookiePolicy Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cookielib.html#defaultcookiepolicy-objects">21.21.4. DefaultCookiePolicy Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cookielib.html#cookie-objects">21.21.5. Cookie Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cookielib.html#examples">21.21.6. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/cookie.html">21.22. <tt class="docutils literal"><span class="pre">Cookie</span></tt> &#8212; HTTP state management</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/cookie.html#cookie-objects">21.22.1. Cookie Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cookie.html#morsel-objects">21.22.2. Morsel Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cookie.html#example">21.22.3. Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/xmlrpclib.html">21.23. <tt class="docutils literal"><span class="pre">xmlrpclib</span></tt> &#8212; XML-RPC client access</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/xmlrpclib.html#serverproxy-objects">21.23.1. ServerProxy Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xmlrpclib.html#boolean-objects">21.23.2. Boolean Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xmlrpclib.html#datetime-objects">21.23.3. DateTime Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xmlrpclib.html#binary-objects">21.23.4. Binary Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xmlrpclib.html#fault-objects">21.23.5. Fault Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xmlrpclib.html#protocolerror-objects">21.23.6. ProtocolError Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xmlrpclib.html#multicall-objects">21.23.7. MultiCall Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xmlrpclib.html#convenience-functions">21.23.8. Convenience Functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xmlrpclib.html#example-of-client-usage">21.23.9. Example of Client Usage</a></li>
<li class="toctree-l4"><a class="reference external" href="library/xmlrpclib.html#example-of-client-and-server-usage">21.23.10. Example of Client and Server Usage</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/simplexmlrpcserver.html">21.24. <tt class="docutils literal"><span class="pre">SimpleXMLRPCServer</span></tt> &#8212; Basic XML-RPC server</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/simplexmlrpcserver.html#simplexmlrpcserver-objects">21.24.1. SimpleXMLRPCServer Objects</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/simplexmlrpcserver.html#simplexmlrpcserver-example">21.24.1.1. SimpleXMLRPCServer Example</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/simplexmlrpcserver.html#cgixmlrpcrequesthandler">21.24.2. CGIXMLRPCRequestHandler</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/docxmlrpcserver.html">21.25. <tt class="docutils literal"><span class="pre">DocXMLRPCServer</span></tt> &#8212; Self-documenting XML-RPC server</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/docxmlrpcserver.html#docxmlrpcserver-objects">21.25.1. DocXMLRPCServer Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/docxmlrpcserver.html#doccgixmlrpcrequesthandler">21.25.2. DocCGIXMLRPCRequestHandler</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/mm.html">22. Multimedia Services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/audioop.html">22.1. <tt class="docutils literal"><span class="pre">audioop</span></tt> &#8212; Manipulate raw audio data</a></li>
<li class="toctree-l3"><a class="reference external" href="library/imageop.html">22.2. <tt class="docutils literal"><span class="pre">imageop</span></tt> &#8212; Manipulate raw image data</a></li>
<li class="toctree-l3"><a class="reference external" href="library/aifc.html">22.3. <tt class="docutils literal"><span class="pre">aifc</span></tt> &#8212; Read and write AIFF and AIFC files</a></li>
<li class="toctree-l3"><a class="reference external" href="library/sunau.html">22.4. <tt class="docutils literal"><span class="pre">sunau</span></tt> &#8212; Read and write Sun AU files</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/sunau.html#au-read-objects">22.4.1. AU_read Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/sunau.html#au-write-objects">22.4.2. AU_write Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/wave.html">22.5. <tt class="docutils literal"><span class="pre">wave</span></tt> &#8212; Read and write WAV files</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/wave.html#wave-read-objects">22.5.1. Wave_read Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/wave.html#wave-write-objects">22.5.2. Wave_write Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/chunk.html">22.6. <tt class="docutils literal"><span class="pre">chunk</span></tt> &#8212; Read IFF chunked data</a></li>
<li class="toctree-l3"><a class="reference external" href="library/colorsys.html">22.7. <tt class="docutils literal"><span class="pre">colorsys</span></tt> &#8212; Conversions between color systems</a></li>
<li class="toctree-l3"><a class="reference external" href="library/imghdr.html">22.8. <tt class="docutils literal"><span class="pre">imghdr</span></tt> &#8212; Determine the type of an image</a></li>
<li class="toctree-l3"><a class="reference external" href="library/sndhdr.html">22.9. <tt class="docutils literal"><span class="pre">sndhdr</span></tt> &#8212; Determine type of sound file</a></li>
<li class="toctree-l3"><a class="reference external" href="library/ossaudiodev.html">22.10. <tt class="docutils literal"><span class="pre">ossaudiodev</span></tt> &#8212; Access to OSS-compatible audio devices</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/ossaudiodev.html#audio-device-objects">22.10.1. Audio Device Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/ossaudiodev.html#mixer-device-objects">22.10.2. Mixer Device Objects</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/i18n.html">23. Internationalization</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/gettext.html">23.1. <tt class="docutils literal"><span class="pre">gettext</span></tt> &#8212; Multilingual internationalization services</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/gettext.html#gnu-gettext-api">23.1.1. GNU <strong>gettext</strong> API</a></li>
<li class="toctree-l4"><a class="reference external" href="library/gettext.html#class-based-api">23.1.2. Class-based API</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/gettext.html#the-nulltranslations-class">23.1.2.1. The <tt class="docutils literal"><span class="pre">NullTranslations</span></tt> class</a></li>
<li class="toctree-l5"><a class="reference external" href="library/gettext.html#the-gnutranslations-class">23.1.2.2. The <tt class="docutils literal"><span class="pre">GNUTranslations</span></tt> class</a></li>
<li class="toctree-l5"><a class="reference external" href="library/gettext.html#solaris-message-catalog-support">23.1.2.3. Solaris message catalog support</a></li>
<li class="toctree-l5"><a class="reference external" href="library/gettext.html#the-catalog-constructor">23.1.2.4. The Catalog constructor</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/gettext.html#internationalizing-your-programs-and-modules">23.1.3. Internationalizing your programs and modules</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/gettext.html#localizing-your-module">23.1.3.1. Localizing your module</a></li>
<li class="toctree-l5"><a class="reference external" href="library/gettext.html#localizing-your-application">23.1.3.2. Localizing your application</a></li>
<li class="toctree-l5"><a class="reference external" href="library/gettext.html#changing-languages-on-the-fly">23.1.3.3. Changing languages on the fly</a></li>
<li class="toctree-l5"><a class="reference external" href="library/gettext.html#deferred-translations">23.1.3.4. Deferred translations</a></li>
<li class="toctree-l5"><a class="reference external" href="library/gettext.html#gettext-vs-lgettext">23.1.3.5. <tt class="docutils literal"><span class="pre">gettext()</span></tt> vs. <tt class="docutils literal"><span class="pre">lgettext()</span></tt></a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/gettext.html#acknowledgements">23.1.4. Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/locale.html">23.2. <tt class="docutils literal"><span class="pre">locale</span></tt> &#8212; Internationalization services</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/locale.html#background-details-hints-tips-and-caveats">23.2.1. Background, details, hints, tips and caveats</a></li>
<li class="toctree-l4"><a class="reference external" href="library/locale.html#for-extension-writers-and-programs-that-embed-python">23.2.2. For extension writers and programs that embed Python</a></li>
<li class="toctree-l4"><a class="reference external" href="library/locale.html#access-to-message-catalogs">23.2.3. Access to message catalogs</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/frameworks.html">24. Program Frameworks</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/cmd.html">24.1. <tt class="docutils literal"><span class="pre">cmd</span></tt> &#8212; Support for line-oriented command interpreters</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/cmd.html#cmd-objects">24.1.1. Cmd Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/shlex.html">24.2. <tt class="docutils literal"><span class="pre">shlex</span></tt> &#8212; Simple lexical analysis</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/shlex.html#shlex-objects">24.2.1. shlex Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/shlex.html#parsing-rules">24.2.2. Parsing Rules</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/tk.html">25. Graphical User Interfaces with Tk</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/tkinter.html">25.1. <tt class="docutils literal"><span class="pre">Tkinter</span></tt> &#8212; Python interface to Tcl/Tk</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/tkinter.html#tkinter-modules">25.1.1. Tkinter Modules</a></li>
<li class="toctree-l4"><a class="reference external" href="library/tkinter.html#tkinter-life-preserver">25.1.2. Tkinter Life Preserver</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/tkinter.html#how-to-use-this-section">25.1.2.1. How To Use This Section</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tkinter.html#a-simple-hello-world-program">25.1.2.2. A Simple Hello World Program</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/tkinter.html#a-very-quick-look-at-tcl-tk">25.1.3. A (Very) Quick Look at Tcl/Tk</a></li>
<li class="toctree-l4"><a class="reference external" href="library/tkinter.html#mapping-basic-tk-into-tkinter">25.1.4. Mapping Basic Tk into Tkinter</a></li>
<li class="toctree-l4"><a class="reference external" href="library/tkinter.html#how-tk-and-tkinter-are-related">25.1.5. How Tk and Tkinter are Related</a></li>
<li class="toctree-l4"><a class="reference external" href="library/tkinter.html#handy-reference">25.1.6. Handy Reference</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/tkinter.html#setting-options">25.1.6.1. Setting Options</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tkinter.html#the-packer">25.1.6.2. The Packer</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tkinter.html#packer-options">25.1.6.3. Packer Options</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tkinter.html#coupling-widget-variables">25.1.6.4. Coupling Widget Variables</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tkinter.html#the-window-manager">25.1.6.5. The Window Manager</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tkinter.html#tk-option-data-types">25.1.6.6. Tk Option Data Types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tkinter.html#bindings-and-events">25.1.6.7. Bindings and Events</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tkinter.html#the-index-parameter">25.1.6.8. The index Parameter</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tkinter.html#images">25.1.6.9. Images</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/tix.html">25.2. <tt class="docutils literal"><span class="pre">Tix</span></tt> &#8212; Extension widgets for Tk</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/tix.html#using-tix">25.2.1. Using Tix</a></li>
<li class="toctree-l4"><a class="reference external" href="library/tix.html#tix-widgets">25.2.2. Tix Widgets</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/tix.html#basic-widgets">25.2.2.1. Basic Widgets</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tix.html#file-selectors">25.2.2.2. File Selectors</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tix.html#hierarchical-listbox">25.2.2.3. Hierarchical ListBox</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tix.html#tabular-listbox">25.2.2.4. Tabular ListBox</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tix.html#manager-widgets">25.2.2.5. Manager Widgets</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tix.html#image-types">25.2.2.6. Image Types</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tix.html#miscellaneous-widgets">25.2.2.7. Miscellaneous Widgets</a></li>
<li class="toctree-l5"><a class="reference external" href="library/tix.html#form-geometry-manager">25.2.2.8. Form Geometry Manager</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/tix.html#tix-commands">25.2.3. Tix Commands</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/scrolledtext.html">25.3. <tt class="docutils literal"><span class="pre">ScrolledText</span></tt> &#8212; Scrolled Text Widget</a></li>
<li class="toctree-l3"><a class="reference external" href="library/turtle.html">25.4. <tt class="docutils literal"><span class="pre">turtle</span></tt> &#8212; Turtle graphics for Tk</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/turtle.html#introduction">25.4.1. Introduction</a></li>
<li class="toctree-l4"><a class="reference external" href="library/turtle.html#overview-over-available-turtle-and-screen-methods">25.4.2. Overview over available Turtle and Screen methods</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#turtle-methods">25.4.2.1. Turtle methods</a></li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#methods-of-turtlescreen-screen">25.4.2.2. Methods of TurtleScreen/Screen</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/turtle.html#methods-of-rawturtle-turtle-and-corresponding-functions">25.4.3. Methods of RawTurtle/Turtle and corresponding functions</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#turtle-motion">25.4.3.1. Turtle motion</a></li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#tell-turtle-s-state">25.4.3.2. Tell Turtle&#8217;s state</a></li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#settings-for-measurement">25.4.3.3. Settings for measurement</a></li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#pen-control">25.4.3.4. Pen control</a><ul>
<li class="toctree-l6"><a class="reference external" href="library/turtle.html#drawing-state">25.4.3.4.1. Drawing state</a></li>
<li class="toctree-l6"><a class="reference external" href="library/turtle.html#color-control">25.4.3.4.2. Color control</a></li>
<li class="toctree-l6"><a class="reference external" href="library/turtle.html#filling">25.4.3.4.3. Filling</a></li>
<li class="toctree-l6"><a class="reference external" href="library/turtle.html#more-drawing-control">25.4.3.4.4. More drawing control</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#turtle-state">25.4.3.5. Turtle state</a><ul>
<li class="toctree-l6"><a class="reference external" href="library/turtle.html#visibility">25.4.3.5.1. Visibility</a></li>
<li class="toctree-l6"><a class="reference external" href="library/turtle.html#appearance">25.4.3.5.2. Appearance</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#using-events">25.4.3.6. Using events</a></li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#special-turtle-methods">25.4.3.7. Special Turtle methods</a></li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#excursus-about-the-use-of-compound-shapes">25.4.3.8. Excursus about the use of compound shapes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/turtle.html#methods-of-turtlescreen-screen-and-corresponding-functions">25.4.4. Methods of TurtleScreen/Screen and corresponding functions</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#window-control">25.4.4.1. Window control</a></li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#animation-control">25.4.4.2. Animation control</a></li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#using-screen-events">25.4.4.3. Using screen events</a></li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#settings-and-special-methods">25.4.4.4. Settings and special methods</a></li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#methods-specific-to-screen-not-inherited-from-turtlescreen">25.4.4.5. Methods specific to Screen, not inherited from TurtleScreen</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/turtle.html#the-public-classes-of-the-module-turtle">25.4.5. The public classes of the module <tt class="docutils literal"><span class="pre">turtle</span></tt></a></li>
<li class="toctree-l4"><a class="reference external" href="library/turtle.html#help-and-configuration">25.4.6. Help and configuration</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#how-to-use-help">25.4.6.1. How to use help</a></li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#translation-of-docstrings-into-different-languages">25.4.6.2. Translation of docstrings into different languages</a></li>
<li class="toctree-l5"><a class="reference external" href="library/turtle.html#how-to-configure-screen-and-turtles">25.4.6.3. How to configure Screen and Turtles</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/turtle.html#demo-scripts">25.4.7. Demo scripts</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/idle.html">25.5. IDLE</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/idle.html#menus">25.5.1. Menus</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/idle.html#file-menu">25.5.1.1. File menu</a></li>
<li class="toctree-l5"><a class="reference external" href="library/idle.html#edit-menu">25.5.1.2. Edit menu</a></li>
<li class="toctree-l5"><a class="reference external" href="library/idle.html#windows-menu">25.5.1.3. Windows menu</a></li>
<li class="toctree-l5"><a class="reference external" href="library/idle.html#debug-menu-in-the-python-shell-window-only">25.5.1.4. Debug menu (in the Python Shell window only)</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/idle.html#basic-editing-and-navigation">25.5.2. Basic editing and navigation</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/idle.html#automatic-indentation">25.5.2.1. Automatic indentation</a></li>
<li class="toctree-l5"><a class="reference external" href="library/idle.html#python-shell-window">25.5.2.2. Python Shell window</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/idle.html#syntax-colors">25.5.3. Syntax colors</a></li>
<li class="toctree-l4"><a class="reference external" href="library/idle.html#startup">25.5.4. Startup</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/idle.html#command-line-usage">25.5.4.1. Command line usage</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/othergui.html">25.6. Other Graphical User Interface Packages</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/development.html">26. Development Tools</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/pydoc.html">26.1. <tt class="docutils literal"><span class="pre">pydoc</span></tt> &#8212; Documentation generator and online help system</a></li>
<li class="toctree-l3"><a class="reference external" href="library/doctest.html">26.2. <tt class="docutils literal"><span class="pre">doctest</span></tt> &#8212; Test interactive Python examples</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/doctest.html#simple-usage-checking-examples-in-docstrings">26.2.1. Simple Usage: Checking Examples in Docstrings</a></li>
<li class="toctree-l4"><a class="reference external" href="library/doctest.html#simple-usage-checking-examples-in-a-text-file">26.2.2. Simple Usage: Checking Examples in a Text File</a></li>
<li class="toctree-l4"><a class="reference external" href="library/doctest.html#how-it-works">26.2.3. How It Works</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/doctest.html#which-docstrings-are-examined">26.2.3.1. Which Docstrings Are Examined?</a></li>
<li class="toctree-l5"><a class="reference external" href="library/doctest.html#how-are-docstring-examples-recognized">26.2.3.2. How are Docstring Examples Recognized?</a></li>
<li class="toctree-l5"><a class="reference external" href="library/doctest.html#what-s-the-execution-context">26.2.3.3. What&#8217;s the Execution Context?</a></li>
<li class="toctree-l5"><a class="reference external" href="library/doctest.html#what-about-exceptions">26.2.3.4. What About Exceptions?</a></li>
<li class="toctree-l5"><a class="reference external" href="library/doctest.html#option-flags-and-directives">26.2.3.5. Option Flags and Directives</a></li>
<li class="toctree-l5"><a class="reference external" href="library/doctest.html#warnings">26.2.3.6. Warnings</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/doctest.html#basic-api">26.2.4. Basic API</a></li>
<li class="toctree-l4"><a class="reference external" href="library/doctest.html#unittest-api">26.2.5. Unittest API</a></li>
<li class="toctree-l4"><a class="reference external" href="library/doctest.html#advanced-api">26.2.6. Advanced API</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/doctest.html#doctest-objects">26.2.6.1. DocTest Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/doctest.html#example-objects">26.2.6.2. Example Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/doctest.html#doctestfinder-objects">26.2.6.3. DocTestFinder objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/doctest.html#doctestparser-objects">26.2.6.4. DocTestParser objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/doctest.html#doctestrunner-objects">26.2.6.5. DocTestRunner objects</a></li>
<li class="toctree-l5"><a class="reference external" href="library/doctest.html#outputchecker-objects">26.2.6.6. OutputChecker objects</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/doctest.html#debugging">26.2.7. Debugging</a></li>
<li class="toctree-l4"><a class="reference external" href="library/doctest.html#soapbox">26.2.8. Soapbox</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/unittest.html">26.3. <tt class="docutils literal"><span class="pre">unittest</span></tt> &#8212; Unit testing framework</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/unittest.html#basic-example">26.3.1. Basic example</a></li>
<li class="toctree-l4"><a class="reference external" href="library/unittest.html#organizing-test-code">26.3.2. Organizing test code</a></li>
<li class="toctree-l4"><a class="reference external" href="library/unittest.html#re-using-old-test-code">26.3.3. Re-using old test code</a></li>
<li class="toctree-l4"><a class="reference external" href="library/unittest.html#classes-and-functions">26.3.4. Classes and functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/unittest.html#testcase-objects">26.3.5. TestCase Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/unittest.html#testsuite-objects">26.3.6. TestSuite Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/unittest.html#testresult-objects">26.3.7. TestResult Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/unittest.html#testloader-objects">26.3.8. TestLoader Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/2to3.html">26.4. 2to3 - Automated Python 2 to 3 code translation</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/2to3.html#using-2to3">26.4.1. Using 2to3</a></li>
<li class="toctree-l4"><a class="reference external" href="library/2to3.html#module-lib2to3">26.4.2. <tt class="docutils literal"><span class="pre">lib2to3</span></tt> - 2to3&#8217;s library</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/test.html">26.5. <tt class="docutils literal"><span class="pre">test</span></tt> &#8212; Regression tests package for Python</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/test.html#writing-unit-tests-for-the-test-package">26.5.1. Writing Unit Tests for the <tt class="docutils literal"><span class="pre">test</span></tt> package</a></li>
<li class="toctree-l4"><a class="reference external" href="library/test.html#running-tests-using-test-regrtest">26.5.2. Running tests using <tt class="docutils literal"><span class="pre">test.regrtest</span></tt></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/test.html#module-test.test_support">26.6. <tt class="docutils literal"><span class="pre">test.test_support</span></tt> &#8212; Utility functions for tests</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/debug.html">27. Debugging and Profiling</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/bdb.html">27.1. <tt class="docutils literal"><span class="pre">bdb</span></tt> &#8212; Debugger framework</a></li>
<li class="toctree-l3"><a class="reference external" href="library/pdb.html">27.2. <tt class="docutils literal"><span class="pre">pdb</span></tt> &#8212; The Python Debugger</a></li>
<li class="toctree-l3"><a class="reference external" href="library/pdb.html#debugger-commands">27.3. Debugger Commands</a></li>
<li class="toctree-l3"><a class="reference external" href="library/profile.html">27.4. The Python Profilers</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/profile.html#introduction-to-the-profilers">27.4.1. Introduction to the profilers</a></li>
<li class="toctree-l4"><a class="reference external" href="library/profile.html#instant-user-s-manual">27.4.2. Instant User&#8217;s Manual</a></li>
<li class="toctree-l4"><a class="reference external" href="library/profile.html#what-is-deterministic-profiling">27.4.3. What Is Deterministic Profiling?</a></li>
<li class="toctree-l4"><a class="reference external" href="library/profile.html#module-pstats">27.4.4. Reference Manual &#8211; <tt class="docutils literal"><span class="pre">profile</span></tt> and <tt class="docutils literal"><span class="pre">cProfile</span></tt></a><ul>
<li class="toctree-l5"><a class="reference external" href="library/profile.html#the-stats-class">27.4.4.1. The <tt class="docutils literal"><span class="pre">Stats</span></tt> Class</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="library/profile.html#limitations">27.4.5. Limitations</a></li>
<li class="toctree-l4"><a class="reference external" href="library/profile.html#calibration">27.4.6. Calibration</a></li>
<li class="toctree-l4"><a class="reference external" href="library/profile.html#extensions-deriving-better-profilers">27.4.7. Extensions &#8212; Deriving Better Profilers</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/hotshot.html">27.5. <tt class="docutils literal"><span class="pre">hotshot</span></tt> &#8212; High performance logging profiler</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/hotshot.html#profile-objects">27.5.1. Profile Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/hotshot.html#module-hotshot.stats">27.5.2. Using hotshot data</a></li>
<li class="toctree-l4"><a class="reference external" href="library/hotshot.html#example-usage">27.5.3. Example Usage</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/timeit.html">27.6. <tt class="docutils literal"><span class="pre">timeit</span></tt> &#8212; Measure execution time of small code snippets</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/timeit.html#command-line-interface">27.6.1. Command Line Interface</a></li>
<li class="toctree-l4"><a class="reference external" href="library/timeit.html#examples">27.6.2. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/trace.html">27.7. <tt class="docutils literal"><span class="pre">trace</span></tt> &#8212; Trace or track Python statement execution</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/trace.html#command-line-usage">27.7.1. Command Line Usage</a></li>
<li class="toctree-l4"><a class="reference external" href="library/trace.html#programming-interface">27.7.2. Programming Interface</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/python.html">28. Python Runtime Services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/sys.html">28.1. <tt class="docutils literal"><span class="pre">sys</span></tt> &#8212; System-specific parameters and functions</a></li>
<li class="toctree-l3"><a class="reference external" href="library/__builtin__.html">28.2. <tt class="docutils literal"><span class="pre">__builtin__</span></tt> &#8212; Built-in objects</a></li>
<li class="toctree-l3"><a class="reference external" href="library/future_builtins.html">28.3. <tt class="docutils literal"><span class="pre">future_builtins</span></tt> &#8212; Python 3 builtins</a></li>
<li class="toctree-l3"><a class="reference external" href="library/__main__.html">28.4. <tt class="docutils literal"><span class="pre">__main__</span></tt> &#8212; Top-level script environment</a></li>
<li class="toctree-l3"><a class="reference external" href="library/warnings.html">28.5. <tt class="docutils literal"><span class="pre">warnings</span></tt> &#8212; Warning control</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/warnings.html#warning-categories">28.5.1. Warning Categories</a></li>
<li class="toctree-l4"><a class="reference external" href="library/warnings.html#the-warnings-filter">28.5.2. The Warnings Filter</a></li>
<li class="toctree-l4"><a class="reference external" href="library/warnings.html#temporarily-suppressing-warnings">28.5.3. Temporarily Suppressing Warnings</a></li>
<li class="toctree-l4"><a class="reference external" href="library/warnings.html#testing-warnings">28.5.4. Testing Warnings</a></li>
<li class="toctree-l4"><a class="reference external" href="library/warnings.html#available-functions">28.5.5. Available Functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/warnings.html#available-context-managers">28.5.6. Available Context Managers</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/contextlib.html">28.6. <tt class="docutils literal"><span class="pre">contextlib</span></tt> &#8212; Utilities for <tt class="docutils literal"><span class="pre">with</span></tt>-statement contexts.</a></li>
<li class="toctree-l3"><a class="reference external" href="library/abc.html">28.7. <tt class="docutils literal"><span class="pre">abc</span></tt> &#8212; Abstract Base Classes</a></li>
<li class="toctree-l3"><a class="reference external" href="library/atexit.html">28.8. <tt class="docutils literal"><span class="pre">atexit</span></tt> &#8212; Exit handlers</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/atexit.html#atexit-example">28.8.1. <tt class="docutils literal"><span class="pre">atexit</span></tt> Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/traceback.html">28.9. <tt class="docutils literal"><span class="pre">traceback</span></tt> &#8212; Print or retrieve a stack traceback</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/traceback.html#traceback-examples">28.9.1. Traceback Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/__future__.html">28.10. <tt class="docutils literal"><span class="pre">__future__</span></tt> &#8212; Future statement definitions</a></li>
<li class="toctree-l3"><a class="reference external" href="library/gc.html">28.11. <tt class="docutils literal"><span class="pre">gc</span></tt> &#8212; Garbage Collector interface</a></li>
<li class="toctree-l3"><a class="reference external" href="library/inspect.html">28.12. <tt class="docutils literal"><span class="pre">inspect</span></tt> &#8212; Inspect live objects</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/inspect.html#types-and-members">28.12.1. Types and members</a></li>
<li class="toctree-l4"><a class="reference external" href="library/inspect.html#retrieving-source-code">28.12.2. Retrieving source code</a></li>
<li class="toctree-l4"><a class="reference external" href="library/inspect.html#classes-and-functions">28.12.3. Classes and functions</a></li>
<li class="toctree-l4"><a class="reference external" href="library/inspect.html#the-interpreter-stack">28.12.4. The interpreter stack</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/site.html">28.13. <tt class="docutils literal"><span class="pre">site</span></tt> &#8212; Site-specific configuration hook</a></li>
<li class="toctree-l3"><a class="reference external" href="library/user.html">28.14. <tt class="docutils literal"><span class="pre">user</span></tt> &#8212; User-specific configuration hook</a></li>
<li class="toctree-l3"><a class="reference external" href="library/fpectl.html">28.15. <tt class="docutils literal"><span class="pre">fpectl</span></tt> &#8212; Floating point exception control</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/fpectl.html#example">28.15.1. Example</a></li>
<li class="toctree-l4"><a class="reference external" href="library/fpectl.html#limitations-and-other-considerations">28.15.2. Limitations and other considerations</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/custominterp.html">29. Custom Python Interpreters</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/code.html">29.1. <tt class="docutils literal"><span class="pre">code</span></tt> &#8212; Interpreter base classes</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/code.html#interactive-interpreter-objects">29.1.1. Interactive Interpreter Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/code.html#interactive-console-objects">29.1.2. Interactive Console Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/codeop.html">29.2. <tt class="docutils literal"><span class="pre">codeop</span></tt> &#8212; Compile Python code</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/restricted.html">30. Restricted Execution</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/rexec.html">30.1. <tt class="docutils literal"><span class="pre">rexec</span></tt> &#8212; Restricted execution framework</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/rexec.html#rexec-objects">30.1.1. RExec Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/rexec.html#defining-restricted-environments">30.1.2. Defining restricted environments</a></li>
<li class="toctree-l4"><a class="reference external" href="library/rexec.html#an-example">30.1.3. An example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/bastion.html">30.2. <tt class="docutils literal"><span class="pre">Bastion</span></tt> &#8212; Restricting access to objects</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/modules.html">31. Importing Modules</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/imp.html">31.1. <tt class="docutils literal"><span class="pre">imp</span></tt> &#8212; Access the <tt class="docutils literal"><span class="pre">import</span></tt> internals</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/imp.html#examples">31.1.1. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/imputil.html">31.2. <tt class="docutils literal"><span class="pre">imputil</span></tt> &#8212; Import utilities</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/imputil.html#examples">31.2.1. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/zipimport.html">31.3. <tt class="docutils literal"><span class="pre">zipimport</span></tt> &#8212; Import modules from Zip archives</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/zipimport.html#zipimporter-objects">31.3.1. zipimporter Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/zipimport.html#examples">31.3.2. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/pkgutil.html">31.4. <tt class="docutils literal"><span class="pre">pkgutil</span></tt> &#8212; Package extension utility</a></li>
<li class="toctree-l3"><a class="reference external" href="library/modulefinder.html">31.5. <tt class="docutils literal"><span class="pre">modulefinder</span></tt> &#8212; Find modules used by a script</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/modulefinder.html#example-usage-of-modulefinder">31.5.1. Example usage of <tt class="docutils literal"><span class="pre">ModuleFinder</span></tt></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/runpy.html">31.6. <tt class="docutils literal"><span class="pre">runpy</span></tt> &#8212; Locating and executing Python modules</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/language.html">32. Python Language Services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/parser.html">32.1. <tt class="docutils literal"><span class="pre">parser</span></tt> &#8212; Access Python parse trees</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/parser.html#creating-st-objects">32.1.1. Creating ST Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/parser.html#converting-st-objects">32.1.2. Converting ST Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/parser.html#queries-on-st-objects">32.1.3. Queries on ST Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/parser.html#exceptions-and-error-handling">32.1.4. Exceptions and Error Handling</a></li>
<li class="toctree-l4"><a class="reference external" href="library/parser.html#st-objects">32.1.5. ST Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/parser.html#examples">32.1.6. Examples</a><ul>
<li class="toctree-l5"><a class="reference external" href="library/parser.html#emulation-of-compile">32.1.6.1. Emulation of <tt class="docutils literal"><span class="pre">compile()</span></tt></a></li>
<li class="toctree-l5"><a class="reference external" href="library/parser.html#information-discovery">32.1.6.2. Information Discovery</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/ast.html">32.2. Abstract Syntax Trees</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/ast.html#node-classes">32.2.1. Node classes</a></li>
<li class="toctree-l4"><a class="reference external" href="library/ast.html#abstract-grammar">32.2.2. Abstract Grammar</a></li>
<li class="toctree-l4"><a class="reference external" href="library/ast.html#ast-helpers">32.2.3. <tt class="docutils literal"><span class="pre">ast</span></tt> Helpers</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/symtable.html">32.3. <tt class="docutils literal"><span class="pre">symtable</span></tt> &#8212; Access to the compiler&#8217;s symbol tables</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/symtable.html#generating-symbol-tables">32.3.1. Generating Symbol Tables</a></li>
<li class="toctree-l4"><a class="reference external" href="library/symtable.html#examining-symbol-tables">32.3.2. Examining Symbol Tables</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/symbol.html">32.4. <tt class="docutils literal"><span class="pre">symbol</span></tt> &#8212; Constants used with Python parse trees</a></li>
<li class="toctree-l3"><a class="reference external" href="library/token.html">32.5. <tt class="docutils literal"><span class="pre">token</span></tt> &#8212; Constants used with Python parse trees</a></li>
<li class="toctree-l3"><a class="reference external" href="library/keyword.html">32.6. <tt class="docutils literal"><span class="pre">keyword</span></tt> &#8212; Testing for Python keywords</a></li>
<li class="toctree-l3"><a class="reference external" href="library/tokenize.html">32.7. <tt class="docutils literal"><span class="pre">tokenize</span></tt> &#8212; Tokenizer for Python source</a></li>
<li class="toctree-l3"><a class="reference external" href="library/tabnanny.html">32.8. <tt class="docutils literal"><span class="pre">tabnanny</span></tt> &#8212; Detection of ambiguous indentation</a></li>
<li class="toctree-l3"><a class="reference external" href="library/pyclbr.html">32.9. <tt class="docutils literal"><span class="pre">pyclbr</span></tt> &#8212; Python class browser support</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/pyclbr.html#class-objects">32.9.1. Class Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/pyclbr.html#function-objects">32.9.2. Function Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/py_compile.html">32.10. <tt class="docutils literal"><span class="pre">py_compile</span></tt> &#8212; Compile Python source files</a></li>
<li class="toctree-l3"><a class="reference external" href="library/compileall.html">32.11. <tt class="docutils literal"><span class="pre">compileall</span></tt> &#8212; Byte-compile Python libraries</a></li>
<li class="toctree-l3"><a class="reference external" href="library/dis.html">32.12. <tt class="docutils literal"><span class="pre">dis</span></tt> &#8212; Disassembler for Python bytecode</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/dis.html#python-bytecode-instructions">32.12.1. Python Bytecode Instructions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/pickletools.html">32.13. <tt class="docutils literal"><span class="pre">pickletools</span></tt> &#8212; Tools for pickle developers.</a></li>
<li class="toctree-l3"><a class="reference external" href="library/distutils.html">32.14. <tt class="docutils literal"><span class="pre">distutils</span></tt> &#8212; Building and installing Python modules</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/compiler.html">33. Python compiler package</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/compiler.html#module-compiler">33.1. The basic interface</a></li>
<li class="toctree-l3"><a class="reference external" href="library/compiler.html#limitations">33.2. Limitations</a></li>
<li class="toctree-l3"><a class="reference external" href="library/compiler.html#python-abstract-syntax">33.3. Python Abstract Syntax</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/compiler.html#module-compiler.ast">33.3.1. AST Nodes</a></li>
<li class="toctree-l4"><a class="reference external" href="library/compiler.html#assignment-nodes">33.3.2. Assignment nodes</a></li>
<li class="toctree-l4"><a class="reference external" href="library/compiler.html#examples">33.3.3. Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/compiler.html#module-compiler.visitor">33.4. Using Visitors to Walk ASTs</a></li>
<li class="toctree-l3"><a class="reference external" href="library/compiler.html#bytecode-generation">33.5. Bytecode Generation</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/misc.html">34. Miscellaneous Services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/formatter.html">34.1. <tt class="docutils literal"><span class="pre">formatter</span></tt> &#8212; Generic output formatting</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/formatter.html#the-formatter-interface">34.1.1. The Formatter Interface</a></li>
<li class="toctree-l4"><a class="reference external" href="library/formatter.html#formatter-implementations">34.1.2. Formatter Implementations</a></li>
<li class="toctree-l4"><a class="reference external" href="library/formatter.html#the-writer-interface">34.1.3. The Writer Interface</a></li>
<li class="toctree-l4"><a class="reference external" href="library/formatter.html#writer-implementations">34.1.4. Writer Implementations</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/windows.html">35. MS Windows Specific Services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/msilib.html">35.1. <tt class="docutils literal"><span class="pre">msilib</span></tt> &#8212; Read and write Microsoft Installer files</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/msilib.html#database-objects">35.1.1. Database Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/msilib.html#view-objects">35.1.2. View Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/msilib.html#summary-information-objects">35.1.3. Summary Information Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/msilib.html#record-objects">35.1.4. Record Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/msilib.html#errors">35.1.5. Errors</a></li>
<li class="toctree-l4"><a class="reference external" href="library/msilib.html#cab-objects">35.1.6. CAB Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/msilib.html#directory-objects">35.1.7. Directory Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/msilib.html#features">35.1.8. Features</a></li>
<li class="toctree-l4"><a class="reference external" href="library/msilib.html#gui-classes">35.1.9. GUI classes</a></li>
<li class="toctree-l4"><a class="reference external" href="library/msilib.html#precomputed-tables">35.1.10. Precomputed tables</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/msvcrt.html">35.2. <tt class="docutils literal"><span class="pre">msvcrt</span></tt> &#8211; Useful routines from the MS VC++ runtime</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/msvcrt.html#file-operations">35.2.1. File Operations</a></li>
<li class="toctree-l4"><a class="reference external" href="library/msvcrt.html#console-i-o">35.2.2. Console I/O</a></li>
<li class="toctree-l4"><a class="reference external" href="library/msvcrt.html#other-functions">35.2.3. Other Functions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/_winreg.html">35.3. <tt class="docutils literal"><span class="pre">_winreg</span></tt> &#8211; Windows registry access</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/_winreg.html#registry-handle-objects">35.3.1. Registry Handle Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/winsound.html">35.4. <tt class="docutils literal"><span class="pre">winsound</span></tt> &#8212; Sound-playing interface for Windows</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/unix.html">36. Unix Specific Services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/posix.html">36.1. <tt class="docutils literal"><span class="pre">posix</span></tt> &#8212; The most common POSIX system calls</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/posix.html#large-file-support">36.1.1. Large File Support</a></li>
<li class="toctree-l4"><a class="reference external" href="library/posix.html#notable-module-contents">36.1.2. Notable Module Contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/pwd.html">36.2. <tt class="docutils literal"><span class="pre">pwd</span></tt> &#8212; The password database</a></li>
<li class="toctree-l3"><a class="reference external" href="library/spwd.html">36.3. <tt class="docutils literal"><span class="pre">spwd</span></tt> &#8212; The shadow password database</a></li>
<li class="toctree-l3"><a class="reference external" href="library/grp.html">36.4. <tt class="docutils literal"><span class="pre">grp</span></tt> &#8212; The group database</a></li>
<li class="toctree-l3"><a class="reference external" href="library/crypt.html">36.5. <tt class="docutils literal"><span class="pre">crypt</span></tt> &#8212; Function to check Unix passwords</a></li>
<li class="toctree-l3"><a class="reference external" href="library/dl.html">36.6. <tt class="docutils literal"><span class="pre">dl</span></tt> &#8212; Call C functions in shared objects</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/dl.html#dl-objects">36.6.1. Dl Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/termios.html">36.7. <tt class="docutils literal"><span class="pre">termios</span></tt> &#8212; POSIX style tty control</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/termios.html#example">36.7.1. Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/tty.html">36.8. <tt class="docutils literal"><span class="pre">tty</span></tt> &#8212; Terminal control functions</a></li>
<li class="toctree-l3"><a class="reference external" href="library/pty.html">36.9. <tt class="docutils literal"><span class="pre">pty</span></tt> &#8212; Pseudo-terminal utilities</a></li>
<li class="toctree-l3"><a class="reference external" href="library/fcntl.html">36.10. <tt class="docutils literal"><span class="pre">fcntl</span></tt> &#8212; The <tt class="docutils literal"><span class="pre">fcntl()</span></tt> and <tt class="docutils literal"><span class="pre">ioctl()</span></tt> system calls</a></li>
<li class="toctree-l3"><a class="reference external" href="library/pipes.html">36.11. <tt class="docutils literal"><span class="pre">pipes</span></tt> &#8212; Interface to shell pipelines</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/pipes.html#template-objects">36.11.1. Template Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/posixfile.html">36.12. <tt class="docutils literal"><span class="pre">posixfile</span></tt> &#8212; File-like objects with locking support</a></li>
<li class="toctree-l3"><a class="reference external" href="library/resource.html">36.13. <tt class="docutils literal"><span class="pre">resource</span></tt> &#8212; Resource usage information</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/resource.html#resource-limits">36.13.1. Resource Limits</a></li>
<li class="toctree-l4"><a class="reference external" href="library/resource.html#resource-usage">36.13.2. Resource Usage</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/nis.html">36.14. <tt class="docutils literal"><span class="pre">nis</span></tt> &#8212; Interface to Sun&#8217;s NIS (Yellow Pages)</a></li>
<li class="toctree-l3"><a class="reference external" href="library/syslog.html">36.15. <tt class="docutils literal"><span class="pre">syslog</span></tt> &#8212; Unix syslog library routines</a></li>
<li class="toctree-l3"><a class="reference external" href="library/commands.html">36.16. <tt class="docutils literal"><span class="pre">commands</span></tt> &#8212; Utilities for running commands</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/mac.html">37. Mac OS X specific services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/ic.html">37.1. <tt class="docutils literal"><span class="pre">ic</span></tt> &#8212; Access to the Mac OS X Internet Config</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/ic.html#ic-objects">37.1.1. IC Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/macos.html">37.2. <tt class="docutils literal"><span class="pre">MacOS</span></tt> &#8212; Access to Mac OS interpreter features</a></li>
<li class="toctree-l3"><a class="reference external" href="library/macostools.html">37.3. <tt class="docutils literal"><span class="pre">macostools</span></tt> &#8212; Convenience routines for file manipulation</a></li>
<li class="toctree-l3"><a class="reference external" href="library/macostools.html#module-findertools">37.4. <tt class="docutils literal"><span class="pre">findertools</span></tt> &#8212; The <strong>finder</strong>&#8216;s Apple Events interface</a></li>
<li class="toctree-l3"><a class="reference external" href="library/easydialogs.html">37.5. <tt class="docutils literal"><span class="pre">EasyDialogs</span></tt> &#8212; Basic Macintosh dialogs</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/easydialogs.html#progressbar-objects">37.5.1. ProgressBar Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/framework.html">37.6. <tt class="docutils literal"><span class="pre">FrameWork</span></tt> &#8212; Interactive application framework</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/framework.html#application-objects">37.6.1. Application Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/framework.html#window-objects">37.6.2. Window Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/framework.html#controlswindow-object">37.6.3. ControlsWindow Object</a></li>
<li class="toctree-l4"><a class="reference external" href="library/framework.html#scrolledwindow-object">37.6.4. ScrolledWindow Object</a></li>
<li class="toctree-l4"><a class="reference external" href="library/framework.html#dialogwindow-objects">37.6.5. DialogWindow Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/autogil.html">37.7. <tt class="docutils literal"><span class="pre">autoGIL</span></tt> &#8212; Global Interpreter Lock handling in event loops</a></li>
<li class="toctree-l3"><a class="reference external" href="library/carbon.html">37.8. Mac OS Toolbox Modules</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.AE">37.8.1. <tt class="docutils literal"><span class="pre">Carbon.AE</span></tt> &#8212; Apple Events</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.AH">37.8.2. <tt class="docutils literal"><span class="pre">Carbon.AH</span></tt> &#8212; Apple Help</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.App">37.8.3. <tt class="docutils literal"><span class="pre">Carbon.App</span></tt> &#8212; Appearance Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Appearance">37.8.4. <tt class="docutils literal"><span class="pre">Carbon.Appearance</span></tt> &#8212; Appearance Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.CF">37.8.5. <tt class="docutils literal"><span class="pre">Carbon.CF</span></tt> &#8212; Core Foundation</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.CG">37.8.6. <tt class="docutils literal"><span class="pre">Carbon.CG</span></tt> &#8212; Core Graphics</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.CarbonEvt">37.8.7. <tt class="docutils literal"><span class="pre">Carbon.CarbonEvt</span></tt> &#8212; Carbon Event Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.CarbonEvents">37.8.8. <tt class="docutils literal"><span class="pre">Carbon.CarbonEvents</span></tt> &#8212; Carbon Event Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Cm">37.8.9. <tt class="docutils literal"><span class="pre">Carbon.Cm</span></tt> &#8212; Component Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Components">37.8.10. <tt class="docutils literal"><span class="pre">Carbon.Components</span></tt> &#8212; Component Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.ControlAccessor">37.8.11. <tt class="docutils literal"><span class="pre">Carbon.ControlAccessor</span></tt> &#8212; Control Manager accssors</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Controls">37.8.12. <tt class="docutils literal"><span class="pre">Carbon.Controls</span></tt> &#8212; Control Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.CoreFounation">37.8.13. <tt class="docutils literal"><span class="pre">Carbon.CoreFounation</span></tt> &#8212; CoreFounation constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.CoreGraphics">37.8.14. <tt class="docutils literal"><span class="pre">Carbon.CoreGraphics</span></tt> &#8212; CoreGraphics constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Ctl">37.8.15. <tt class="docutils literal"><span class="pre">Carbon.Ctl</span></tt> &#8212; Control Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Dialogs">37.8.16. <tt class="docutils literal"><span class="pre">Carbon.Dialogs</span></tt> &#8212; Dialog Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Dlg">37.8.17. <tt class="docutils literal"><span class="pre">Carbon.Dlg</span></tt> &#8212; Dialog Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Drag">37.8.18. <tt class="docutils literal"><span class="pre">Carbon.Drag</span></tt> &#8212; Drag and Drop Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Dragconst">37.8.19. <tt class="docutils literal"><span class="pre">Carbon.Dragconst</span></tt> &#8212; Drag and Drop Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Events">37.8.20. <tt class="docutils literal"><span class="pre">Carbon.Events</span></tt> &#8212; Event Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Evt">37.8.21. <tt class="docutils literal"><span class="pre">Carbon.Evt</span></tt> &#8212; Event Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.File">37.8.22. <tt class="docutils literal"><span class="pre">Carbon.File</span></tt> &#8212; File Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Files">37.8.23. <tt class="docutils literal"><span class="pre">Carbon.Files</span></tt> &#8212; File Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Fm">37.8.24. <tt class="docutils literal"><span class="pre">Carbon.Fm</span></tt> &#8212; Font Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Folder">37.8.25. <tt class="docutils literal"><span class="pre">Carbon.Folder</span></tt> &#8212; Folder Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Folders">37.8.26. <tt class="docutils literal"><span class="pre">Carbon.Folders</span></tt> &#8212; Folder Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Fonts">37.8.27. <tt class="docutils literal"><span class="pre">Carbon.Fonts</span></tt> &#8212; Font Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Help">37.8.28. <tt class="docutils literal"><span class="pre">Carbon.Help</span></tt> &#8212; Help Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.IBCarbon">37.8.29. <tt class="docutils literal"><span class="pre">Carbon.IBCarbon</span></tt> &#8212; Carbon InterfaceBuilder</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.IBCarbonRuntime">37.8.30. <tt class="docutils literal"><span class="pre">Carbon.IBCarbonRuntime</span></tt> &#8212; Carbon InterfaceBuilder constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Icns">37.8.31. <tt class="docutils literal"><span class="pre">Carbon.Icn</span></tt> &#8212; Carbon Icon Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Icons">37.8.32. <tt class="docutils literal"><span class="pre">Carbon.Icons</span></tt> &#8212; Carbon Icon Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Launch">37.8.33. <tt class="docutils literal"><span class="pre">Carbon.Launch</span></tt> &#8212; Carbon Launch Services</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.LaunchServices">37.8.34. <tt class="docutils literal"><span class="pre">Carbon.LaunchServices</span></tt> &#8212; Carbon Launch Services constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.List">37.8.35. <tt class="docutils literal"><span class="pre">Carbon.List</span></tt> &#8212; List Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Lists">37.8.36. <tt class="docutils literal"><span class="pre">Carbon.Lists</span></tt> &#8212; List Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.MacHelp">37.8.37. <tt class="docutils literal"><span class="pre">Carbon.MacHelp</span></tt> &#8212; Help Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.MediaDescr">37.8.38. <tt class="docutils literal"><span class="pre">Carbon.MediaDescr</span></tt> &#8212; Parsers and generators for Quicktime Media descriptors</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Menu">37.8.39. <tt class="docutils literal"><span class="pre">Carbon.Menu</span></tt> &#8212; Menu Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Menus">37.8.40. <tt class="docutils literal"><span class="pre">Carbon.Menus</span></tt> &#8212; Menu Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Mlte">37.8.41. <tt class="docutils literal"><span class="pre">Carbon.Mlte</span></tt> &#8212; MultiLingual Text Editor</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.OSA">37.8.42. <tt class="docutils literal"><span class="pre">Carbon.OSA</span></tt> &#8212; Carbon OSA Interface</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.OSAconst">37.8.43. <tt class="docutils literal"><span class="pre">Carbon.OSAconst</span></tt> &#8212; Carbon OSA Interface constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.QDOffscreen">37.8.44. <tt class="docutils literal"><span class="pre">Carbon.QDOffscreen</span></tt> &#8212; QuickDraw Offscreen constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Qd">37.8.45. <tt class="docutils literal"><span class="pre">Carbon.Qd</span></tt> &#8212; QuickDraw</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Qdoffs">37.8.46. <tt class="docutils literal"><span class="pre">Carbon.Qdoffs</span></tt> &#8212; QuickDraw Offscreen</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Qt">37.8.47. <tt class="docutils literal"><span class="pre">Carbon.Qt</span></tt> &#8212; QuickTime</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.QuickDraw">37.8.48. <tt class="docutils literal"><span class="pre">Carbon.QuickDraw</span></tt> &#8212; QuickDraw constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.QuickTime">37.8.49. <tt class="docutils literal"><span class="pre">Carbon.QuickTime</span></tt> &#8212; QuickTime constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Res">37.8.50. <tt class="docutils literal"><span class="pre">Carbon.Res</span></tt> &#8212; Resource Manager and Handles</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Resources">37.8.51. <tt class="docutils literal"><span class="pre">Carbon.Resources</span></tt> &#8212; Resource Manager and Handles constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Scrap">37.8.52. <tt class="docutils literal"><span class="pre">Carbon.Scrap</span></tt> &#8212; Scrap Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Snd">37.8.53. <tt class="docutils literal"><span class="pre">Carbon.Snd</span></tt> &#8212; Sound Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Sound">37.8.54. <tt class="docutils literal"><span class="pre">Carbon.Sound</span></tt> &#8212; Sound Manager constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.TE">37.8.55. <tt class="docutils literal"><span class="pre">Carbon.TE</span></tt> &#8212; TextEdit</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.TextEdit">37.8.56. <tt class="docutils literal"><span class="pre">Carbon.TextEdit</span></tt> &#8212; TextEdit constants</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Win">37.8.57. <tt class="docutils literal"><span class="pre">Carbon.Win</span></tt> &#8212; Window Manager</a></li>
<li class="toctree-l4"><a class="reference external" href="library/carbon.html#module-Carbon.Windows">37.8.58. <tt class="docutils literal"><span class="pre">Carbon.Windows</span></tt> &#8212; Window Manager constants</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/colorpicker.html">37.9. <tt class="docutils literal"><span class="pre">ColorPicker</span></tt> &#8212; Color selection dialog</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/macosa.html">38. MacPython OSA Modules</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/gensuitemodule.html">38.1. <tt class="docutils literal"><span class="pre">gensuitemodule</span></tt> &#8212; Generate OSA stub packages</a></li>
<li class="toctree-l3"><a class="reference external" href="library/aetools.html">38.2. <tt class="docutils literal"><span class="pre">aetools</span></tt> &#8212; OSA client support</a></li>
<li class="toctree-l3"><a class="reference external" href="library/aepack.html">38.3. <tt class="docutils literal"><span class="pre">aepack</span></tt> &#8212; Conversion between Python variables and AppleEvent data containers</a></li>
<li class="toctree-l3"><a class="reference external" href="library/aetypes.html">38.4. <tt class="docutils literal"><span class="pre">aetypes</span></tt> &#8212; AppleEvent objects</a></li>
<li class="toctree-l3"><a class="reference external" href="library/miniaeframe.html">38.5. <tt class="docutils literal"><span class="pre">MiniAEFrame</span></tt> &#8212; Open Scripting Architecture server support</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/miniaeframe.html#aeserver-objects">38.5.1. AEServer Objects</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/sgi.html">39. SGI IRIX Specific Services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/al.html">39.1. <tt class="docutils literal"><span class="pre">al</span></tt> &#8212; Audio functions on the SGI</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/al.html#configuration-objects">39.1.1. Configuration Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/al.html#port-objects">39.1.2. Port Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/al.html#module-AL">39.2. <tt class="docutils literal"><span class="pre">AL</span></tt> &#8212; Constants used with the <tt class="docutils literal"><span class="pre">al</span></tt> module</a></li>
<li class="toctree-l3"><a class="reference external" href="library/cd.html">39.3. <tt class="docutils literal"><span class="pre">cd</span></tt> &#8212; CD-ROM access on SGI systems</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/cd.html#player-objects">39.3.1. Player Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/cd.html#parser-objects">39.3.2. Parser Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/fl.html">39.4. <tt class="docutils literal"><span class="pre">fl</span></tt> &#8212; FORMS library for graphical user interfaces</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/fl.html#functions-defined-in-module-fl">39.4.1. Functions Defined in Module <tt class="docutils literal"><span class="pre">fl</span></tt></a></li>
<li class="toctree-l4"><a class="reference external" href="library/fl.html#form-objects">39.4.2. Form Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/fl.html#forms-objects">39.4.3. FORMS Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/fl.html#module-FL">39.5. <tt class="docutils literal"><span class="pre">FL</span></tt> &#8212; Constants used with the <tt class="docutils literal"><span class="pre">fl</span></tt> module</a></li>
<li class="toctree-l3"><a class="reference external" href="library/fl.html#module-flp">39.6. <tt class="docutils literal"><span class="pre">flp</span></tt> &#8212; Functions for loading stored FORMS designs</a></li>
<li class="toctree-l3"><a class="reference external" href="library/fm.html">39.7. <tt class="docutils literal"><span class="pre">fm</span></tt> &#8212; <em>Font Manager</em> interface</a></li>
<li class="toctree-l3"><a class="reference external" href="library/gl.html">39.8. <tt class="docutils literal"><span class="pre">gl</span></tt> &#8212; <em>Graphics Library</em> interface</a></li>
<li class="toctree-l3"><a class="reference external" href="library/gl.html#module-DEVICE">39.9. <tt class="docutils literal"><span class="pre">DEVICE</span></tt> &#8212; Constants used with the <tt class="docutils literal"><span class="pre">gl</span></tt> module</a></li>
<li class="toctree-l3"><a class="reference external" href="library/gl.html#module-GL">39.10. <tt class="docutils literal"><span class="pre">GL</span></tt> &#8212; Constants used with the <tt class="docutils literal"><span class="pre">gl</span></tt> module</a></li>
<li class="toctree-l3"><a class="reference external" href="library/imgfile.html">39.11. <tt class="docutils literal"><span class="pre">imgfile</span></tt> &#8212; Support for SGI imglib files</a></li>
<li class="toctree-l3"><a class="reference external" href="library/jpeg.html">39.12. <tt class="docutils literal"><span class="pre">jpeg</span></tt> &#8212; Read and write JPEG files</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/sun.html">40. SunOS Specific Services</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/sunaudio.html">40.1. <tt class="docutils literal"><span class="pre">sunaudiodev</span></tt> &#8212; Access to Sun audio hardware</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/sunaudio.html#audio-device-objects">40.1.1. Audio Device Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/sunaudio.html#module-SUNAUDIODEV">40.2. <tt class="docutils literal"><span class="pre">SUNAUDIODEV</span></tt> &#8212; Constants used with <tt class="docutils literal"><span class="pre">sunaudiodev</span></tt></a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="library/undoc.html">41. Undocumented Modules</a><ul>
<li class="toctree-l3"><a class="reference external" href="library/undoc.html#miscellaneous-useful-utilities">41.1. Miscellaneous useful utilities</a></li>
<li class="toctree-l3"><a class="reference external" href="library/undoc.html#platform-specific-modules">41.2. Platform specific modules</a></li>
<li class="toctree-l3"><a class="reference external" href="library/undoc.html#multimedia">41.3. Multimedia</a></li>
<li class="toctree-l3"><a class="reference external" href="library/undoc.html#undocumented-mac-os-modules">41.4. Undocumented Mac OS modules</a><ul>
<li class="toctree-l4"><a class="reference external" href="library/undoc.html#module-applesingle">41.4.1. <tt class="docutils literal"><span class="pre">applesingle</span></tt> &#8212; AppleSingle decoder</a></li>
<li class="toctree-l4"><a class="reference external" href="library/undoc.html#module-buildtools">41.4.2. <tt class="docutils literal"><span class="pre">buildtools</span></tt> &#8212; Helper module for BuildApplet and Friends</a></li>
<li class="toctree-l4"><a class="reference external" href="library/undoc.html#module-cfmfile">41.4.3. <tt class="docutils literal"><span class="pre">cfmfile</span></tt> &#8212; Code Fragment Resource module</a></li>
<li class="toctree-l4"><a class="reference external" href="library/undoc.html#module-icopen">41.4.4. <tt class="docutils literal"><span class="pre">icopen</span></tt> &#8212; Internet Config replacement for <tt class="docutils literal"><span class="pre">open()</span></tt></a></li>
<li class="toctree-l4"><a class="reference external" href="library/undoc.html#module-macerrors">41.4.5. <tt class="docutils literal"><span class="pre">macerrors</span></tt> &#8212; Mac OS Errors</a></li>
<li class="toctree-l4"><a class="reference external" href="library/undoc.html#module-macresource">41.4.6. <tt class="docutils literal"><span class="pre">macresource</span></tt> &#8212; Locate script resources</a></li>
<li class="toctree-l4"><a class="reference external" href="library/undoc.html#module-Nav">41.4.7. <tt class="docutils literal"><span class="pre">Nav</span></tt> &#8212; NavServices calls</a></li>
<li class="toctree-l4"><a class="reference external" href="library/undoc.html#module-PixMapWrapper">41.4.8. <tt class="docutils literal"><span class="pre">PixMapWrapper</span></tt> &#8212; Wrapper for PixMap objects</a></li>
<li class="toctree-l4"><a class="reference external" href="library/undoc.html#module-videoreader">41.4.9. <tt class="docutils literal"><span class="pre">videoreader</span></tt> &#8212; Read QuickTime movies</a></li>
<li class="toctree-l4"><a class="reference external" href="library/undoc.html#module-W">41.4.10. <tt class="docutils literal"><span class="pre">W</span></tt> &#8212; Widgets built on <tt class="docutils literal"><span class="pre">FrameWork</span></tt></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="library/undoc.html#obsolete">41.5. Obsolete</a></li>
<li class="toctree-l3"><a class="reference external" href="library/undoc.html#sgi-specific-extension-modules">41.6. SGI-specific Extension modules</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="extending/index.html">Extending and Embedding the Python Interpreter</a><ul>
<li class="toctree-l2"><a class="reference external" href="extending/extending.html">1. Extending Python with C or C++</a><ul>
<li class="toctree-l3"><a class="reference external" href="extending/extending.html#a-simple-example">1.1. A Simple Example</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/extending.html#intermezzo-errors-and-exceptions">1.2. Intermezzo: Errors and Exceptions</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/extending.html#back-to-the-example">1.3. Back to the Example</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/extending.html#the-module-s-method-table-and-initialization-function">1.4. The Module&#8217;s Method Table and Initialization Function</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/extending.html#compilation-and-linkage">1.5. Compilation and Linkage</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/extending.html#calling-python-functions-from-c">1.6. Calling Python Functions from C</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/extending.html#extracting-parameters-in-extension-functions">1.7. Extracting Parameters in Extension Functions</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/extending.html#keyword-parameters-for-extension-functions">1.8. Keyword Parameters for Extension Functions</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/extending.html#building-arbitrary-values">1.9. Building Arbitrary Values</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/extending.html#reference-counts">1.10. Reference Counts</a><ul>
<li class="toctree-l4"><a class="reference external" href="extending/extending.html#reference-counting-in-python">1.10.1. Reference Counting in Python</a></li>
<li class="toctree-l4"><a class="reference external" href="extending/extending.html#ownership-rules">1.10.2. Ownership Rules</a></li>
<li class="toctree-l4"><a class="reference external" href="extending/extending.html#thin-ice">1.10.3. Thin Ice</a></li>
<li class="toctree-l4"><a class="reference external" href="extending/extending.html#null-pointers">1.10.4. NULL Pointers</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="extending/extending.html#writing-extensions-in-c">1.11. Writing Extensions in C++</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/extending.html#providing-a-c-api-for-an-extension-module">1.12. Providing a C API for an Extension Module</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="extending/newtypes.html">2. Defining New Types</a><ul>
<li class="toctree-l3"><a class="reference external" href="extending/newtypes.html#the-basics">2.1. The Basics</a><ul>
<li class="toctree-l4"><a class="reference external" href="extending/newtypes.html#adding-data-and-methods-to-the-basic-example">2.1.1. Adding data and methods to the Basic example</a></li>
<li class="toctree-l4"><a class="reference external" href="extending/newtypes.html#providing-finer-control-over-data-attributes">2.1.2. Providing finer control over data attributes</a></li>
<li class="toctree-l4"><a class="reference external" href="extending/newtypes.html#supporting-cyclic-garbage-collection">2.1.3. Supporting cyclic garbage collection</a></li>
<li class="toctree-l4"><a class="reference external" href="extending/newtypes.html#subclassing-other-types">2.1.4. Subclassing other types</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="extending/newtypes.html#type-methods">2.2. Type Methods</a><ul>
<li class="toctree-l4"><a class="reference external" href="extending/newtypes.html#finalization-and-de-allocation">2.2.1. Finalization and De-allocation</a></li>
<li class="toctree-l4"><a class="reference external" href="extending/newtypes.html#object-presentation">2.2.2. Object Presentation</a></li>
<li class="toctree-l4"><a class="reference external" href="extending/newtypes.html#attribute-management">2.2.3. Attribute Management</a><ul>
<li class="toctree-l5"><a class="reference external" href="extending/newtypes.html#generic-attribute-management">2.2.3.1. Generic Attribute Management</a></li>
<li class="toctree-l5"><a class="reference external" href="extending/newtypes.html#type-specific-attribute-management">2.2.3.2. Type-specific Attribute Management</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="extending/newtypes.html#object-comparison">2.2.4. Object Comparison</a></li>
<li class="toctree-l4"><a class="reference external" href="extending/newtypes.html#abstract-protocol-support">2.2.5. Abstract Protocol Support</a></li>
<li class="toctree-l4"><a class="reference external" href="extending/newtypes.html#weak-reference-support">2.2.6. Weak Reference Support</a></li>
<li class="toctree-l4"><a class="reference external" href="extending/newtypes.html#more-suggestions">2.2.7. More Suggestions</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="extending/building.html">3. Building C and C++ Extensions with distutils</a><ul>
<li class="toctree-l3"><a class="reference external" href="extending/building.html#distributing-your-extension-modules">3.1. Distributing your extension modules</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="extending/windows.html">4. Building C and C++ Extensions on Windows</a><ul>
<li class="toctree-l3"><a class="reference external" href="extending/windows.html#a-cookbook-approach">4.1. A Cookbook Approach</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/windows.html#differences-between-unix-and-windows">4.2. Differences Between Unix and Windows</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/windows.html#using-dlls-in-practice">4.3. Using DLLs in Practice</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="extending/embedding.html">5. Embedding Python in Another Application</a><ul>
<li class="toctree-l3"><a class="reference external" href="extending/embedding.html#very-high-level-embedding">5.1. Very High Level Embedding</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/embedding.html#beyond-very-high-level-embedding-an-overview">5.2. Beyond Very High Level Embedding: An overview</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/embedding.html#pure-embedding">5.3. Pure Embedding</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/embedding.html#extending-embedded-python">5.4. Extending Embedded Python</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/embedding.html#embedding-python-in-c">5.5. Embedding Python in C++</a></li>
<li class="toctree-l3"><a class="reference external" href="extending/embedding.html#linking-requirements">5.6. Linking Requirements</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="c-api/index.html">Python/C API Reference Manual</a><ul>
<li class="toctree-l2"><a class="reference external" href="c-api/intro.html">Introduction</a><ul>
<li class="toctree-l3"><a class="reference external" href="c-api/intro.html#include-files">Include Files</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/intro.html#objects-types-and-reference-counts">Objects, Types and Reference Counts</a><ul>
<li class="toctree-l4"><a class="reference external" href="c-api/intro.html#reference-counts">Reference Counts</a><ul>
<li class="toctree-l5"><a class="reference external" href="c-api/intro.html#reference-count-details">Reference Count Details</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="c-api/intro.html#types">Types</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="c-api/intro.html#exceptions">Exceptions</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/intro.html#embedding-python">Embedding Python</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/intro.html#debugging-builds">Debugging Builds</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="c-api/veryhigh.html">The Very High Level Layer</a></li>
<li class="toctree-l2"><a class="reference external" href="c-api/refcounting.html">Reference Counting</a></li>
<li class="toctree-l2"><a class="reference external" href="c-api/exceptions.html">Exception Handling</a><ul>
<li class="toctree-l3"><a class="reference external" href="c-api/exceptions.html#standard-exceptions">Standard Exceptions</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/exceptions.html#deprecation-of-string-exceptions">Deprecation of String Exceptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="c-api/utilities.html">Utilities</a><ul>
<li class="toctree-l3"><a class="reference external" href="c-api/sys.html">Operating System Utilities</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/sys.html#system-functions">System Functions</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/sys.html#process-control">Process Control</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/import.html">Importing Modules</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/marshal.html">Data marshalling support</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/arg.html">Parsing arguments and building values</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/conversion.html">String conversion and formatting</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/reflection.html">Reflection</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="c-api/abstract.html">Abstract Objects Layer</a><ul>
<li class="toctree-l3"><a class="reference external" href="c-api/object.html">Object Protocol</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/number.html">Number Protocol</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/sequence.html">Sequence Protocol</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/mapping.html">Mapping Protocol</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/iter.html">Iterator Protocol</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/objbuffer.html">Buffer Protocol</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="c-api/concrete.html">Concrete Objects Layer</a><ul>
<li class="toctree-l3"><a class="reference external" href="c-api/concrete.html#fundamental-objects">Fundamental Objects</a><ul>
<li class="toctree-l4"><a class="reference external" href="c-api/type.html">Type Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/none.html">The None Object</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="c-api/concrete.html#numeric-objects">Numeric Objects</a><ul>
<li class="toctree-l4"><a class="reference external" href="c-api/int.html">Plain Integer Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/bool.html">Boolean Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/long.html">Long Integer Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/float.html">Floating Point Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/complex.html">Complex Number Objects</a><ul>
<li class="toctree-l5"><a class="reference external" href="c-api/complex.html#complex-numbers-as-c-structures">Complex Numbers as C Structures</a></li>
<li class="toctree-l5"><a class="reference external" href="c-api/complex.html#complex-numbers-as-python-objects">Complex Numbers as Python Objects</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="c-api/concrete.html#sequence-objects">Sequence Objects</a><ul>
<li class="toctree-l4"><a class="reference external" href="c-api/bytearray.html">Byte Array Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/string.html">String/Bytes Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/unicode.html">Unicode Objects and Codecs</a><ul>
<li class="toctree-l5"><a class="reference external" href="c-api/unicode.html#unicode-objects">Unicode Objects</a></li>
<li class="toctree-l5"><a class="reference external" href="c-api/unicode.html#built-in-codecs">Built-in Codecs</a></li>
<li class="toctree-l5"><a class="reference external" href="c-api/unicode.html#methods-and-slot-functions">Methods and Slot Functions</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="c-api/buffer.html">Buffer Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/tuple.html">Tuple Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/list.html">List Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="c-api/concrete.html#mapping-objects">Mapping Objects</a><ul>
<li class="toctree-l4"><a class="reference external" href="c-api/dict.html">Dictionary Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="c-api/concrete.html#other-objects">Other Objects</a><ul>
<li class="toctree-l4"><a class="reference external" href="c-api/class.html">Class and Instance Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/function.html">Function Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/method.html">Method Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/file.html">File Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/module.html">Module Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/iterator.html">Iterator Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/descriptor.html">Descriptor Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/slice.html">Slice Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/weakref.html">Weak Reference Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/cobject.html">CObjects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/cell.html">Cell Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/gen.html">Generator Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/datetime.html">DateTime Objects</a></li>
<li class="toctree-l4"><a class="reference external" href="c-api/set.html">Set Objects</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="c-api/init.html">Initialization, Finalization, and Threads</a><ul>
<li class="toctree-l3"><a class="reference external" href="c-api/init.html#thread-state-and-the-global-interpreter-lock">Thread State and the Global Interpreter Lock</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/init.html#profiling-and-tracing">Profiling and Tracing</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/init.html#advanced-debugger-support">Advanced Debugger Support</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="c-api/memory.html">Memory Management</a><ul>
<li class="toctree-l3"><a class="reference external" href="c-api/memory.html#overview">Overview</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/memory.html#memory-interface">Memory Interface</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/memory.html#examples">Examples</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="c-api/objimpl.html">Object Implementation Support</a><ul>
<li class="toctree-l3"><a class="reference external" href="c-api/allocation.html">Allocating Objects on the Heap</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/structures.html">Common Object Structures</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/typeobj.html">Type Objects</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/typeobj.html#number-object-structures">Number Object Structures</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/typeobj.html#mapping-object-structures">Mapping Object Structures</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/typeobj.html#sequence-object-structures">Sequence Object Structures</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/typeobj.html#buffer-object-structures">Buffer Object Structures</a></li>
<li class="toctree-l3"><a class="reference external" href="c-api/gcsupport.html">Supporting Cyclic Garbage Collection</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="distutils/index.html">Distributing Python Modules</a><ul>
<li class="toctree-l2"><a class="reference external" href="distutils/introduction.html">1. An Introduction to Distutils</a><ul>
<li class="toctree-l3"><a class="reference external" href="distutils/introduction.html#concepts-terminology">1.1. Concepts &amp; Terminology</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/introduction.html#a-simple-example">1.2. A Simple Example</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/introduction.html#general-python-terminology">1.3. General Python terminology</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/introduction.html#distutils-specific-terminology">1.4. Distutils-specific terminology</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="distutils/setupscript.html">2. Writing the Setup Script</a><ul>
<li class="toctree-l3"><a class="reference external" href="distutils/setupscript.html#listing-whole-packages">2.1. Listing whole packages</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/setupscript.html#listing-individual-modules">2.2. Listing individual modules</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/setupscript.html#describing-extension-modules">2.3. Describing extension modules</a><ul>
<li class="toctree-l4"><a class="reference external" href="distutils/setupscript.html#extension-names-and-packages">2.3.1. Extension names and packages</a></li>
<li class="toctree-l4"><a class="reference external" href="distutils/setupscript.html#extension-source-files">2.3.2. Extension source files</a></li>
<li class="toctree-l4"><a class="reference external" href="distutils/setupscript.html#preprocessor-options">2.3.3. Preprocessor options</a></li>
<li class="toctree-l4"><a class="reference external" href="distutils/setupscript.html#library-options">2.3.4. Library options</a></li>
<li class="toctree-l4"><a class="reference external" href="distutils/setupscript.html#other-options">2.3.5. Other options</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="distutils/setupscript.html#relationships-between-distributions-and-packages">2.4. Relationships between Distributions and Packages</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/setupscript.html#installing-scripts">2.5. Installing Scripts</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/setupscript.html#installing-package-data">2.6. Installing Package Data</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/setupscript.html#installing-additional-files">2.7. Installing Additional Files</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/setupscript.html#additional-meta-data">2.8. Additional meta-data</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/setupscript.html#debugging-the-setup-script">2.9. Debugging the setup script</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="distutils/configfile.html">3. Writing the Setup Configuration File</a></li>
<li class="toctree-l2"><a class="reference external" href="distutils/sourcedist.html">4. Creating a Source Distribution</a><ul>
<li class="toctree-l3"><a class="reference external" href="distutils/sourcedist.html#specifying-the-files-to-distribute">4.1. Specifying the files to distribute</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/sourcedist.html#manifest-related-options">4.2. Manifest-related options</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="distutils/builtdist.html">5. Creating Built Distributions</a><ul>
<li class="toctree-l3"><a class="reference external" href="distutils/builtdist.html#creating-dumb-built-distributions">5.1. Creating dumb built distributions</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/builtdist.html#creating-rpm-packages">5.2. Creating RPM packages</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/builtdist.html#creating-windows-installers">5.3. Creating Windows Installers</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/builtdist.html#cross-compiling-on-windows">5.4. Cross-compiling on Windows</a><ul>
<li class="toctree-l4"><a class="reference external" href="distutils/builtdist.html#the-postinstallation-script">5.4.1. The Postinstallation script</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="distutils/builtdist.html#vista-user-access-control-uac">5.5. Vista User Access Control (UAC)</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="distutils/packageindex.html">6. Registering with the Package Index</a><ul>
<li class="toctree-l3"><a class="reference external" href="distutils/packageindex.html#the-pypirc-file">6.1. The .pypirc file</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="distutils/uploading.html">7. Uploading Packages to the Package Index</a></li>
<li class="toctree-l2"><a class="reference external" href="distutils/examples.html">8. Examples</a><ul>
<li class="toctree-l3"><a class="reference external" href="distutils/examples.html#pure-python-distribution-by-module">8.1. Pure Python distribution (by module)</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/examples.html#pure-python-distribution-by-package">8.2. Pure Python distribution (by package)</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/examples.html#single-extension-module">8.3. Single extension module</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="distutils/extending.html">9. Extending Distutils</a><ul>
<li class="toctree-l3"><a class="reference external" href="distutils/extending.html#integrating-new-commands">9.1. Integrating new commands</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/extending.html#adding-new-distribution-types">9.2. Adding new distribution types</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="distutils/commandref.html">10. Command Reference</a><ul>
<li class="toctree-l3"><a class="reference external" href="distutils/commandref.html#installing-modules-the-install-command-family">10.1. Installing modules: the <strong>install</strong> command family</a><ul>
<li class="toctree-l4"><a class="reference external" href="distutils/commandref.html#install-data">10.1.1. <strong>install_data</strong></a></li>
<li class="toctree-l4"><a class="reference external" href="distutils/commandref.html#install-scripts">10.1.2. <strong>install_scripts</strong></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="distutils/commandref.html#creating-a-source-distribution-the-sdist-command">10.2. Creating a source distribution: the <strong>sdist</strong> command</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="distutils/apiref.html">11. API Reference</a><ul>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.core">11.1. <tt class="docutils literal"><span class="pre">distutils.core</span></tt> &#8212; Core Distutils functionality</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.ccompiler">11.2. <tt class="docutils literal"><span class="pre">distutils.ccompiler</span></tt> &#8212; CCompiler base class</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.unixccompiler">11.3. <tt class="docutils literal"><span class="pre">distutils.unixccompiler</span></tt> &#8212; Unix C Compiler</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.msvccompiler">11.4. <tt class="docutils literal"><span class="pre">distutils.msvccompiler</span></tt> &#8212; Microsoft Compiler</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.bcppcompiler">11.5. <tt class="docutils literal"><span class="pre">distutils.bcppcompiler</span></tt> &#8212; Borland Compiler</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.cygwinccompiler">11.6. <tt class="docutils literal"><span class="pre">distutils.cygwincompiler</span></tt> &#8212; Cygwin Compiler</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.emxccompiler">11.7. <tt class="docutils literal"><span class="pre">distutils.emxccompiler</span></tt> &#8212; OS/2 EMX Compiler</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.mwerkscompiler">11.8. <tt class="docutils literal"><span class="pre">distutils.mwerkscompiler</span></tt> &#8212; Metrowerks CodeWarrior support</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.archive_util">11.9. <tt class="docutils literal"><span class="pre">distutils.archive_util</span></tt> &#8212;  Archiving utilities</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.dep_util">11.10. <tt class="docutils literal"><span class="pre">distutils.dep_util</span></tt> &#8212; Dependency checking</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.dir_util">11.11. <tt class="docutils literal"><span class="pre">distutils.dir_util</span></tt> &#8212; Directory tree operations</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.file_util">11.12. <tt class="docutils literal"><span class="pre">distutils.file_util</span></tt> &#8212; Single file operations</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.util">11.13. <tt class="docutils literal"><span class="pre">distutils.util</span></tt> &#8212; Miscellaneous other utility functions</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.dist">11.14. <tt class="docutils literal"><span class="pre">distutils.dist</span></tt> &#8212; The Distribution class</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.extension">11.15. <tt class="docutils literal"><span class="pre">distutils.extension</span></tt> &#8212; The Extension class</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.debug">11.16. <tt class="docutils literal"><span class="pre">distutils.debug</span></tt> &#8212; Distutils debug mode</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.errors">11.17. <tt class="docutils literal"><span class="pre">distutils.errors</span></tt> &#8212; Distutils exceptions</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.fancy_getopt">11.18. <tt class="docutils literal"><span class="pre">distutils.fancy_getopt</span></tt> &#8212; Wrapper around the standard getopt module</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.filelist">11.19. <tt class="docutils literal"><span class="pre">distutils.filelist</span></tt> &#8212; The FileList class</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.log">11.20. <tt class="docutils literal"><span class="pre">distutils.log</span></tt> &#8212; Simple PEP 282-style logging</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.spawn">11.21. <tt class="docutils literal"><span class="pre">distutils.spawn</span></tt> &#8212; Spawn a sub-process</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.sysconfig">11.22. <tt class="docutils literal"><span class="pre">distutils.sysconfig</span></tt> &#8212; System configuration information</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.text_file">11.23. <tt class="docutils literal"><span class="pre">distutils.text_file</span></tt> &#8212; The TextFile class</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.version">11.24. <tt class="docutils literal"><span class="pre">distutils.version</span></tt> &#8212; Version number classes</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.cmd">11.25. <tt class="docutils literal"><span class="pre">distutils.cmd</span></tt> &#8212; Abstract base class for Distutils commands</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command">11.26. <tt class="docutils literal"><span class="pre">distutils.command</span></tt> &#8212; Individual Distutils commands</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.bdist">11.27. <tt class="docutils literal"><span class="pre">distutils.command.bdist</span></tt> &#8212; Build a binary installer</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.bdist_packager">11.28. <tt class="docutils literal"><span class="pre">distutils.command.bdist_packager</span></tt> &#8212; Abstract base class for packagers</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.bdist_dumb">11.29. <tt class="docutils literal"><span class="pre">distutils.command.bdist_dumb</span></tt> &#8212; Build a &#8220;dumb&#8221; installer</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.bdist_msi">11.30. <tt class="docutils literal"><span class="pre">distutils.command.bdist_msi</span></tt> &#8212; Build a Microsoft Installer binary package</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.bdist_rpm">11.31. <tt class="docutils literal"><span class="pre">distutils.command.bdist_rpm</span></tt> &#8212; Build a binary distribution as a Redhat RPM and SRPM</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.bdist_wininst">11.32. <tt class="docutils literal"><span class="pre">distutils.command.bdist_wininst</span></tt> &#8212; Build a Windows installer</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.sdist">11.33. <tt class="docutils literal"><span class="pre">distutils.command.sdist</span></tt> &#8212; Build a source distribution</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.build">11.34. <tt class="docutils literal"><span class="pre">distutils.command.build</span></tt> &#8212; Build all files of a package</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.build_clib">11.35. <tt class="docutils literal"><span class="pre">distutils.command.build_clib</span></tt> &#8212; Build any C libraries in a package</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.build_ext">11.36. <tt class="docutils literal"><span class="pre">distutils.command.build_ext</span></tt> &#8212; Build any extensions in a package</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.build_py">11.37. <tt class="docutils literal"><span class="pre">distutils.command.build_py</span></tt> &#8212; Build the .py/.pyc files of a package</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.build_scripts">11.38. <tt class="docutils literal"><span class="pre">distutils.command.build_scripts</span></tt> &#8212; Build the scripts of a package</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.clean">11.39. <tt class="docutils literal"><span class="pre">distutils.command.clean</span></tt> &#8212; Clean a package build area</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.config">11.40. <tt class="docutils literal"><span class="pre">distutils.command.config</span></tt> &#8212; Perform package configuration</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.install">11.41. <tt class="docutils literal"><span class="pre">distutils.command.install</span></tt> &#8212; Install a package</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.install_data">11.42. <tt class="docutils literal"><span class="pre">distutils.command.install_data</span></tt> &#8212; Install data files from a package</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.install_headers">11.43. <tt class="docutils literal"><span class="pre">distutils.command.install_headers</span></tt> &#8212; Install C/C++ header files from a package</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.install_lib">11.44. <tt class="docutils literal"><span class="pre">distutils.command.install_lib</span></tt> &#8212; Install library files from a package</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.install_scripts">11.45. <tt class="docutils literal"><span class="pre">distutils.command.install_scripts</span></tt> &#8212; Install script files from a package</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#module-distutils.command.register">11.46. <tt class="docutils literal"><span class="pre">distutils.command.register</span></tt> &#8212; Register a module with the Python Package Index</a></li>
<li class="toctree-l3"><a class="reference external" href="distutils/apiref.html#creating-a-new-distutils-command">11.47. Creating a new Distutils command</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="install/index.html">Installing Python Modules</a><ul>
<li class="toctree-l2"><a class="reference external" href="install/index.html#introduction">Introduction</a><ul>
<li class="toctree-l3"><a class="reference external" href="install/index.html#best-case-trivial-installation">Best case: trivial installation</a></li>
<li class="toctree-l3"><a class="reference external" href="install/index.html#the-new-standard-distutils">The new standard: Distutils</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="install/index.html#standard-build-and-install">Standard Build and Install</a><ul>
<li class="toctree-l3"><a class="reference external" href="install/index.html#platform-variations">Platform variations</a></li>
<li class="toctree-l3"><a class="reference external" href="install/index.html#splitting-the-job-up">Splitting the job up</a></li>
<li class="toctree-l3"><a class="reference external" href="install/index.html#how-building-works">How building works</a></li>
<li class="toctree-l3"><a class="reference external" href="install/index.html#how-installation-works">How installation works</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="install/index.html#alternate-installation">Alternate Installation</a><ul>
<li class="toctree-l3"><a class="reference external" href="install/index.html#alternate-installation-the-home-scheme">Alternate installation: the home scheme</a></li>
<li class="toctree-l3"><a class="reference external" href="install/index.html#alternate-installation-unix-the-prefix-scheme">Alternate installation: Unix (the prefix scheme)</a></li>
<li class="toctree-l3"><a class="reference external" href="install/index.html#alternate-installation-windows-the-prefix-scheme">Alternate installation: Windows (the prefix scheme)</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="install/index.html#custom-installation">Custom Installation</a><ul>
<li class="toctree-l3"><a class="reference external" href="install/index.html#modifying-python-s-search-path">Modifying Python&#8217;s Search Path</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="install/index.html#distutils-configuration-files">Distutils Configuration Files</a><ul>
<li class="toctree-l3"><a class="reference external" href="install/index.html#location-and-names-of-config-files">Location and names of config files</a></li>
<li class="toctree-l3"><a class="reference external" href="install/index.html#syntax-of-config-files">Syntax of config files</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="install/index.html#building-extensions-tips-and-tricks">Building Extensions: Tips and Tricks</a><ul>
<li class="toctree-l3"><a class="reference external" href="install/index.html#tweaking-compiler-linker-flags">Tweaking compiler/linker flags</a></li>
<li class="toctree-l3"><a class="reference external" href="install/index.html#using-non-microsoft-compilers-on-windows">Using non-Microsoft compilers on Windows</a><ul>
<li class="toctree-l4"><a class="reference external" href="install/index.html#borland-codegear-c">Borland/CodeGear C++</a></li>
<li class="toctree-l4"><a class="reference external" href="install/index.html#gnu-c-cygwin-mingw">GNU C / Cygwin / MinGW</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="documenting/index.html">Documenting Python</a><ul>
<li class="toctree-l2"><a class="reference external" href="documenting/intro.html">1. Introduction</a></li>
<li class="toctree-l2"><a class="reference external" href="documenting/style.html">2. Style Guide</a></li>
<li class="toctree-l2"><a class="reference external" href="documenting/rest.html">3. reStructuredText Primer</a><ul>
<li class="toctree-l3"><a class="reference external" href="documenting/rest.html#paragraphs">3.1. Paragraphs</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/rest.html#inline-markup">3.2. Inline markup</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/rest.html#lists-and-quotes">3.3. Lists and Quotes</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/rest.html#source-code">3.4. Source Code</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/rest.html#hyperlinks">3.5. Hyperlinks</a><ul>
<li class="toctree-l4"><a class="reference external" href="documenting/rest.html#external-links">3.5.1. External links</a></li>
<li class="toctree-l4"><a class="reference external" href="documenting/rest.html#internal-links">3.5.2. Internal links</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="documenting/rest.html#sections">3.6. Sections</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/rest.html#explicit-markup">3.7. Explicit Markup</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/rest.html#directives">3.8. Directives</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/rest.html#footnotes">3.9. Footnotes</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/rest.html#comments">3.10. Comments</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/rest.html#source-encoding">3.11. Source encoding</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/rest.html#gotchas">3.12. Gotchas</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="documenting/markup.html">4. Additional Markup Constructs</a><ul>
<li class="toctree-l3"><a class="reference external" href="documenting/markup.html#meta-information-markup">4.1. Meta-information markup</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/markup.html#module-specific-markup">4.2. Module-specific markup</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/markup.html#information-units">4.3. Information units</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/markup.html#showing-code-examples">4.4. Showing code examples</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/markup.html#inline-markup">4.5. Inline markup</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/markup.html#cross-linking-markup">4.6. Cross-linking markup</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/markup.html#paragraph-level-markup">4.7. Paragraph-level markup</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/markup.html#table-of-contents-markup">4.8. Table-of-contents markup</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/markup.html#index-generating-markup">4.9. Index-generating markup</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/markup.html#grammar-production-displays">4.10. Grammar production displays</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/markup.html#substitutions">4.11. Substitutions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="documenting/fromlatex.html">5. Differences to the LaTeX markup</a><ul>
<li class="toctree-l3"><a class="reference external" href="documenting/fromlatex.html#inline-markup">5.1. Inline markup</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/fromlatex.html#information-units">5.2. Information units</a></li>
<li class="toctree-l3"><a class="reference external" href="documenting/fromlatex.html#structure">5.3. Structure</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="howto/index.html">Python HOWTOs</a><ul>
<li class="toctree-l2"><a class="reference external" href="howto/advocacy.html">Python Advocacy HOWTO</a><ul>
<li class="toctree-l3"><a class="reference external" href="howto/advocacy.html#reasons-to-use-python">Reasons to Use Python</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/advocacy.html#programmability">Programmability</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/advocacy.html#prototyping">Prototyping</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/advocacy.html#simplicity-and-ease-of-understanding">Simplicity and Ease of Understanding</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/advocacy.html#java-integration">Java Integration</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/advocacy.html#arguments-and-rebuttals">Arguments and Rebuttals</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/advocacy.html#useful-resources">Useful Resources</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="howto/cporting.html">Porting Extension Modules to 3.0</a><ul>
<li class="toctree-l3"><a class="reference external" href="howto/cporting.html#conditional-compilation">Conditional compilation</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/cporting.html#changes-to-object-apis">Changes to Object APIs</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/cporting.html#str-unicode-unification">str/unicode Unification</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/cporting.html#long-int-unification">long/int Unification</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/cporting.html#module-initialization-and-state">Module initialization and state</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/cporting.html#other-options">Other options</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="howto/curses.html">Curses Programming with Python</a><ul>
<li class="toctree-l3"><a class="reference external" href="howto/curses.html#what-is-curses">What is curses?</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/curses.html#the-python-curses-module">The Python curses module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/curses.html#starting-and-ending-a-curses-application">Starting and ending a curses application</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/curses.html#windows-and-pads">Windows and Pads</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/curses.html#displaying-text">Displaying Text</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/curses.html#attributes-and-color">Attributes and Color</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/curses.html#user-input">User Input</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/curses.html#for-more-information">For More Information</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="howto/doanddont.html">Idioms and Anti-Idioms in Python</a><ul>
<li class="toctree-l3"><a class="reference external" href="howto/doanddont.html#language-constructs-you-should-not-use">Language Constructs You Should Not Use</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/doanddont.html#from-module-import">from module import *</a><ul>
<li class="toctree-l5"><a class="reference external" href="howto/doanddont.html#inside-function-definitions">Inside Function Definitions</a></li>
<li class="toctree-l5"><a class="reference external" href="howto/doanddont.html#at-module-level">At Module Level</a></li>
<li class="toctree-l5"><a class="reference external" href="howto/doanddont.html#when-it-is-just-fine">When It Is Just Fine</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="howto/doanddont.html#unadorned-exec-execfile-and-friends">Unadorned <tt class="docutils literal"><span class="pre">exec</span></tt>, <tt class="docutils literal"><span class="pre">execfile()</span></tt> and friends</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/doanddont.html#from-module-import-name1-name2">from module import name1, name2</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/doanddont.html#except">except:</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/doanddont.html#exceptions">Exceptions</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/doanddont.html#using-the-batteries">Using the Batteries</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/doanddont.html#using-backslash-to-continue-statements">Using Backslash to Continue Statements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="howto/functional.html">Functional Programming HOWTO</a><ul>
<li class="toctree-l3"><a class="reference external" href="howto/functional.html#introduction">Introduction</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#formal-provability">Formal provability</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#modularity">Modularity</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#ease-of-debugging-and-testing">Ease of debugging and testing</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#composability">Composability</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/functional.html#iterators">Iterators</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#data-types-that-support-iterators">Data Types That Support Iterators</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/functional.html#generator-expressions-and-list-comprehensions">Generator expressions and list comprehensions</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/functional.html#generators">Generators</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#passing-values-into-a-generator">Passing values into a generator</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/functional.html#built-in-functions">Built-in functions</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/functional.html#small-functions-and-the-lambda-expression">Small functions and the lambda expression</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/functional.html#the-itertools-module">The itertools module</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#creating-new-iterators">Creating new iterators</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#calling-functions-on-elements">Calling functions on elements</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#selecting-elements">Selecting elements</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#grouping-elements">Grouping elements</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/functional.html#the-functools-module">The functools module</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#the-operator-module">The operator module</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#the-functional-module">The functional module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/functional.html#revision-history-and-acknowledgements">Revision History and Acknowledgements</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/functional.html#references">References</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#general">General</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#python-specific">Python-specific</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/functional.html#python-documentation">Python documentation</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="howto/regex.html">Regular Expression HOWTO</a><ul>
<li class="toctree-l3"><a class="reference external" href="howto/regex.html#introduction">Introduction</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/regex.html#simple-patterns">Simple Patterns</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#matching-characters">Matching Characters</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#repeating-things">Repeating Things</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/regex.html#using-regular-expressions">Using Regular Expressions</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#compiling-regular-expressions">Compiling Regular Expressions</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#the-backslash-plague">The Backslash Plague</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#performing-matches">Performing Matches</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#module-level-functions">Module-Level Functions</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#compilation-flags">Compilation Flags</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/regex.html#more-pattern-power">More Pattern Power</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#more-metacharacters">More Metacharacters</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#grouping">Grouping</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#non-capturing-and-named-groups">Non-capturing and Named Groups</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#lookahead-assertions">Lookahead Assertions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/regex.html#modifying-strings">Modifying Strings</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#splitting-strings">Splitting Strings</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#search-and-replace">Search and Replace</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/regex.html#common-problems">Common Problems</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#use-string-methods">Use String Methods</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#match-versus-search">match() versus search()</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#greedy-versus-non-greedy">Greedy versus Non-Greedy</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/regex.html#not-using-re-verbose">Not Using re.VERBOSE</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/regex.html#feedback">Feedback</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="howto/sockets.html">Socket Programming HOWTO</a><ul>
<li class="toctree-l3"><a class="reference external" href="howto/sockets.html#sockets">Sockets</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/sockets.html#history">History</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/sockets.html#creating-a-socket">Creating a Socket</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/sockets.html#ipc">IPC</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/sockets.html#using-a-socket">Using a Socket</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/sockets.html#binary-data">Binary Data</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/sockets.html#disconnecting">Disconnecting</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/sockets.html#when-sockets-die">When Sockets Die</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/sockets.html#non-blocking-sockets">Non-blocking Sockets</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/sockets.html#performance">Performance</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="howto/unicode.html">Unicode HOWTO</a><ul>
<li class="toctree-l3"><a class="reference external" href="howto/unicode.html#introduction-to-unicode">Introduction to Unicode</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/unicode.html#history-of-character-codes">History of Character Codes</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/unicode.html#definitions">Definitions</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/unicode.html#encodings">Encodings</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/unicode.html#references">References</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/unicode.html#python-s-unicode-support">Python&#8217;s Unicode Support</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/unicode.html#the-unicode-type">The Unicode Type</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/unicode.html#unicode-literals-in-python-source-code">Unicode Literals in Python Source Code</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/unicode.html#unicode-properties">Unicode Properties</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/unicode.html#id1">References</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/unicode.html#reading-and-writing-unicode-data">Reading and Writing Unicode Data</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/unicode.html#unicode-filenames">Unicode filenames</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/unicode.html#tips-for-writing-unicode-aware-programs">Tips for Writing Unicode-aware Programs</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/unicode.html#id2">References</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/unicode.html#revision-history-and-acknowledgements">Revision History and Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="howto/urllib2.html">HOWTO Fetch Internet Resources Using urllib2</a><ul>
<li class="toctree-l3"><a class="reference external" href="howto/urllib2.html#introduction">Introduction</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/urllib2.html#fetching-urls">Fetching URLs</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/urllib2.html#data">Data</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/urllib2.html#headers">Headers</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/urllib2.html#handling-exceptions">Handling Exceptions</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/urllib2.html#urlerror">URLError</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/urllib2.html#httperror">HTTPError</a><ul>
<li class="toctree-l5"><a class="reference external" href="howto/urllib2.html#error-codes">Error Codes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="howto/urllib2.html#wrapping-it-up">Wrapping it Up</a><ul>
<li class="toctree-l5"><a class="reference external" href="howto/urllib2.html#number-1">Number 1</a></li>
<li class="toctree-l5"><a class="reference external" href="howto/urllib2.html#number-2">Number 2</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/urllib2.html#info-and-geturl">info and geturl</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/urllib2.html#openers-and-handlers">Openers and Handlers</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/urllib2.html#id6">Basic Authentication</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/urllib2.html#proxies">Proxies</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/urllib2.html#sockets-and-layers">Sockets and Layers</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/urllib2.html#footnotes">Footnotes</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference external" href="howto/webservers.html">HOWTO Use Python in the web</a><ul>
<li class="toctree-l3"><a class="reference external" href="howto/webservers.html#the-low-level-view">The low-level view</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/webservers.html#common-gateway-interface">Common Gateway Interface</a><ul>
<li class="toctree-l5"><a class="reference external" href="howto/webservers.html#simple-script-for-testing-cgi">Simple script for testing CGI</a></li>
<li class="toctree-l5"><a class="reference external" href="howto/webservers.html#setting-up-cgi-on-your-own-server">Setting up CGI on your own server</a></li>
<li class="toctree-l5"><a class="reference external" href="howto/webservers.html#common-problems-with-cgi-scripts">Common problems with CGI scripts</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="howto/webservers.html#mod-python">mod_python</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/webservers.html#fastcgi-and-scgi">FastCGI and SCGI</a><ul>
<li class="toctree-l5"><a class="reference external" href="howto/webservers.html#setting-up-fastcgi">Setting up FastCGI</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference external" href="howto/webservers.html#mod-wsgi">mod_wsgi</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/webservers.html#step-back-wsgi">Step back: WSGI</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/webservers.html#wsgi-servers">WSGI Servers</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/webservers.html#case-study-moinmoin">Case study: MoinMoin</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/webservers.html#model-view-controller">Model-view-controller</a></li>
<li class="toctree-l3"><a class="reference external" href="howto/webservers.html#ingredients-for-web-sites">Ingredients for web sites</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/webservers.html#templates">Templates</a></li>
<li class="toctree-l4"><a class="reference external" href="howto/webservers.html#data-persistence">Data persistence</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference external" href="howto/webservers.html#frameworks">Frameworks</a><ul>
<li class="toctree-l4"><a class="reference external" href="howto/webservers.html#some-notable-frameworks">Some notable frameworks</a><ul>
<li class="toctree-l5"><a class="reference external" href="howto/webservers.html#django">Django</a></li>
<li class="toctree-l5"><a class="reference external" href="howto/webservers.html#turbogears">TurboGears</a></li>
<li class="toctree-l5"><a class="reference external" href="howto/webservers.html#other-notable-frameworks">Other notable frameworks</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="glossary.html">Glossary</a></li>
<li class="toctree-l1"><a class="reference external" href="about.html">About these documents</a><ul>
<li class="toctree-l2"><a class="reference external" href="about.html#contributors-to-the-python-documentation">Contributors to the Python Documentation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="bugs.html">Reporting Bugs in Python</a></li>
<li class="toctree-l1"><a class="reference external" href="copyright.html">Copyright</a></li>
<li class="toctree-l1"><a class="reference external" href="license.html">History and License</a><ul>
<li class="toctree-l2"><a class="reference external" href="license.html#history-of-the-software">History of the software</a></li>
<li class="toctree-l2"><a class="reference external" href="license.html#terms-and-conditions-for-accessing-or-otherwise-using-python">Terms and conditions for accessing or otherwise using Python</a></li>
<li class="toctree-l2"><a class="reference external" href="license.html#licenses-and-acknowledgements-for-incorporated-software">Licenses and Acknowledgements for Incorporated Software</a><ul>
<li class="toctree-l3"><a class="reference external" href="license.html#mersenne-twister">Mersenne Twister</a></li>
<li class="toctree-l3"><a class="reference external" href="license.html#sockets">Sockets</a></li>
<li class="toctree-l3"><a class="reference external" href="license.html#floating-point-exception-control">Floating point exception control</a></li>
<li class="toctree-l3"><a class="reference external" href="license.html#md5-message-digest-algorithm">MD5 message digest algorithm</a></li>
<li class="toctree-l3"><a class="reference external" href="license.html#asynchronous-socket-services">Asynchronous socket services</a></li>
<li class="toctree-l3"><a class="reference external" href="license.html#cookie-management">Cookie management</a></li>
<li class="toctree-l3"><a class="reference external" href="license.html#profiling">Profiling</a></li>
<li class="toctree-l3"><a class="reference external" href="license.html#execution-tracing">Execution tracing</a></li>
<li class="toctree-l3"><a class="reference external" href="license.html#uuencode-and-uudecode-functions">UUencode and UUdecode functions</a></li>
<li class="toctree-l3"><a class="reference external" href="license.html#xml-remote-procedure-calls">XML Remote Procedure Calls</a></li>
<li class="toctree-l3"><a class="reference external" href="license.html#test-epoll">test_epoll</a></li>
<li class="toctree-l3"><a class="reference external" href="license.html#select-kqueue">Select kqueue</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h4>Next topic</h4>
            <p class="topless"><a href="whatsnew/index.html"
                                  title="next chapter">What&#8217;s New in Python</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="_sources/contents.txt"
                     rel="nofollow">Show Source</a></li>
            </ul>
          <div id="searchbox" style="display: none">
            <h3>Quick search</h3>
              <form class="search" action="search.html" method="get">
                <input type="text" name="q" size="18" />
                <input type="submit" value="Go" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="default" />
              </form>
              <p class="searchtip" style="font-size: 90%">
              Enter search terms or a module, class or function name.
              </p>
          </div>
          <script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="modindex.html" title="Global Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="whatsnew/index.html" title="What’s New in Python"
             >next</a> |</li>
        <li><img src="_static/py.png" alt=""
                 style="vertical-align: middle; margin-top: -1px"/></li>
        <li><a href="index.html">Python v2.6.2 documentation</a> &raquo;</li>
 
      </ul>
    </div>
    <div class="footer">
      &copy; <a href="copyright.html">Copyright</a> 1990-2009, Python Software Foundation.
      Last updated on Apr 15, 2009.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.1.
    </div>
  </body>
</html>